How to get pdf file page count

Hi

How to get pdf file pages count using uipath
Thanks in advance

1 Like

Convert the pdf file into text file…

And read the txt File line by line by using System.String[] = File.readallline(“path”) and check the footer text in the line by using Contains function inside for each activity…

Initilize ur count variable as 0.

If footer line is apper increment ur count variable, Otherwise go to next line.

And finally print ur Count variable, that is ur page num…

Try this and see if it works.

5 Likes

it is not working with pdf having more images or the pdf with more size.