I've just used the file and there wasn't nothing wrong with it and
PdfReader. I'm using itext-paulo-114 but a lower version will also work.
As a side note, don't post big files to the list, provide an URL or send
them directly to me.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: David Nielsen [SMTP:[EMAIL PROTECTED]
> Sent: Friday, March 28, 2003 14:17
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] PdfReader cannot read number of pages
> 
> Hi,
> 
> I have this pdf file: side02.pdf
> When i open it in acrobat nothing is wron with it,
> but if i use getNumberOfPages in itext i get a 0 even when there are 1
> page
> in the document.
> It results in that i cant use the file......
> 
> i used this:
> 
> import com.lowagie.text.pdf.*;
> 
> public class PDFTest {
>       public PDFTest() {
>               try {
>                       PdfReader reader = new PdfReader("C:\\page02.pdf");
>                       System.out.println("Number Of Pages: " +
> reader.getNumberOfPages());
>               } catch(Exception e) {
>                       e.printStackTrace();
>               }
>       }
>       public static void main(String[] args) {
>               PDFTest test = new PDFTest();
>       }
> 
> }
> 
> there shouldnt be wrong with the pdf file.
> 
> 
> Regards,
> David Nielsen.
>  << File: page02.pdf >> 


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to