At 11:53 AM 6/7/2006, Ricardo Coutinho wrote:
>Currently I use the following code to get the number of pages for a PDF
..
>
>documentReader = new PdfReader(document.getData());
>documentReader.getNumberOfPages();
That's the way to do it!
>What I want to know is; Is there a quicker way
>to get this information? Part of the processing
>in my application involves getting the number of
>pages for a pdf and profiling my application
>reveals that I spend a lot of time in the above lines
..
>
For some PDF's, that may well be the
case, as the basic structure of the document must
be read into memory/structures and then a number of objects checked for values.
LDR
---------------------------------------------------------------------------
Leonard Rosenthol <mailto:[EMAIL PROTECTED]>
Chief Technical Officer <http://www.pdfsages.com>
PDF Sages, Inc. 215-938-7080 (voice)
215-938-0880 (fax)
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions