The problem is that Elixir is a lousy pdf generator. It starts counting the
references at 0 instead of 1 and it has unbalanced save/restore states in
the content stream. The first problem I fixed by requesting a xref rebuild
in PdfReader (avaiable in the next version) but the second case only Elixir
can fix it. I should say that the second case causes some kind of recursive
scaling when importing the same page multiple times.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: jaysheel kumar [SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, January 26, 2003 4:51
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] PDF merging problem
> 
> hi all,
> 
>                   Firstly i want to thank itext for developing excellent
> api
> 
> for splitting and merging PDF files. i am able to run the sample
> file(concat.java)
> 
> iam able to concat all the PDF files except PDF files generated by a
> Reporting tool(Elixir). www.elixirtech.com
> 
> it is giving me a NULL POINTER Exception while closing the Document.i
> tried to read thru the codes but failed to solve it.
> 
> Attaching the exception below.
> 
>     java.lang.NullPointerException
>         at
> com.lowagie.text.pdf.PdfIndirectObject.<init>(PdfIndirectObject.java:
> 125)
>         at
> com.lowagie.text.pdf.PdfIndirectObject.<init>(PdfIndirectObject.java:
> 107)
>         at com.lowagie.text.pdf.PdfWriter$PdfBody.add(PdfWriter.java:253)
>         at com.lowagie.text.pdf.PdfWriter.addToBody(PdfWriter.java:1320)
>         at
> com.lowagie.text.pdf.PdfReaderInstance.writeAllVisited(PdfReaderInsta
> nce.java:207)
>         at
> com.lowagie.text.pdf.PdfReaderInstance.writeAllPages(PdfReaderInstanc
> e.java:220)
>         at com.lowagie.text.pdf.PdfWriter.close(PdfWriter.java:783)
>         at com.lowagie.text.pdf.PdfDocument.close(PdfDocument.java:1067)
>         at com.lowagie.text.Document.close(Document.java:499)
>         at PDFMerger.mergePDF(PDFMerger.java:131)
>         at PDFMerger.main(PDFMerger.java:147)
> java.lang.NullPointerException: null
> 
> iam also attaching the PDF file generated by the reporting tool.
> 
> can u pls tell me whether it is the problem with the Reporting tool  or is
> it the 
> 
> limitation of iText.
> 
> Any Clue is appreciated.
> 
> Thanks in advance.
> 
> jay
> 
>  
> 
> 
> 
> 
> 
>   _____  
> 
> Do you Yahoo!?
> Yahoo! Mail Plus
> <http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com> - Powerful.
> Affordable. Sign up now
> <http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com> << File:
> elixir.pdf >> 


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to