I built a flow to count the number of pages of a PDF using the expression below that I found in one of the forums:
sub(length(split(replace(base64ToString(outputs('Get_file_content')?['body']['$content']), 'Type/Pages', ''), 'Type/Page')),1)
It was working well until a while ago. Now the flow no longer counts the number of pages and neither is reading the PDF to include the DocuSign tabs.
For context, I receive several documents from a supplier that I need to put the number of pages that each one has in an Excel and send for signature in the appropriate fields. Since January, the flow that I built in December and which was working very well, is no longer working and the only difference I noticed was that the PDF version that used to be 1.4 became 1.7.
Can anyone tell me why this is happening and how to resolve it?
I already tried to see some ways to convert these PDFs to 1.4 to see if it worked, but I couldn't find it.