[RESOLVED] To find the starting page number and end page number of a pdf file
Dear all,
Can anyone help me to find the starting page number and the end page number of a pdf file. The pdf file may start with any number (for example the pdf file can start with the page number 10 and end with 20) the code should find out the start pare number 10 and the end page number 20.
Re: To find the starting page number and end page number of a pdf file
PDF files can start with roman numerals or any made up characters as well.
Howevre, all PDF pages have an internal pageIndex, which is the actual index of the page within the document.
So even if the first four pages of a 10 page PDF were labeled with roman numerals, the fifth page could be labeled 'Page 1', but it internally has a pageIndex equal to 5.
So the question to you is, do you want the internal page index? If you do, that is easy to obtain. If not, it gets severely more complicated.
Re: To find the starting page number and end page number of a pdf file
My friend I don't want to get the page count, I can able to get the page count. I want to get the page number of a pdf file. The page number is displayed at the bottom of the pdf file(not inside the page). I want to get that number.
You could check the page with the code, what it does is check through a pdf files using a regular pattern to search for a string at the end of every page.