hi everyone,
i need ur help, how to count the no of pages in a pdf file using java, is it possible to do this.
if anybody knows pls send the code.
advance thanks

10 Years
Discussion Span
Last Post by hidash_in

i need to do using java programming. i dont want any software to do this work.
so send me the code
advance thanks

Votes + Comments
Don't expect anyone here to just "send you the code".

Do you know what API means?

It means Application Programming Interface.

iText is a library (a jarfile) that provides you with methods for doing this. It is not a "software that does this work". But, if you want to reinvent the wheel, then please, go ahead, just don't expect anyone else to do it for you. You are going to have to inspect the actual format of PDFs (in all the varying versions) and learn how to read and manipulate them yourself. Or, you could simply download and use an API.


It worries me that you thought an API was "an application that will do what you want"... It raises the question should you be programming this in the first place? I get the impression you lack the basic know-how of Java

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.