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 - Powerful. Affordable. Sign up now

Attachment: elixir.pdf
Description: elixir.pdf

Reply via email to