How to get pdf file page count

studio

#1

Hi

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


#2

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…


#3

Try this and see if it works.


#4

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