Using Power Automate Desktop, I've made a one page PDF from the "Extract PDF file pages to new PDF file". The original PDF had 6 pages. Anyways, when I use the Extract Text from PDF, extracting from a Single Page, it gets extracted any page number. I've tried a lot of random higher than 10 values and in each case the action worked without a clue of why it's working. This is a problem for me because in the rest of the flow, there's a step in which the flow executes again the Extract PDF file pages to new PDF file action, and with this action, it tries to extract this inexistent second page of the PDF (and of course, the program fails).
First, I thought this was happening because of the logic embedded in the use of the action, as the picture shows. But I also tried loading this action at the very beginning of the flow and this is still happening (second picture).
As you may know, is not that easy to get the number of PDF pages in PAD. Even though, I'm seriously thinking in getting this done by this way, since there isn't actually a big problem in the extraction error, the problem is mainly that the logic afterwards takes the PDF to fail in the Extract PDF file pages to new PDF file action. I've only found tutorials on how to get the number of PDF pages in Power Automate Web, but not in the Desktop version.