You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/10/23 17:48:34 UTC
[jira] [Commented] (PDFBOX-1595) PDFMerger failed with the
following exception: java.lang.NullPointerException
[ https://issues.apache.org/jira/browse/PDFBOX-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14181485#comment-14181485 ]
Tilman Hausherr commented on PDFBOX-1595:
-----------------------------------------
Did you or somebody you know create the "bid.pdf" file? It has no xref table.
> PDFMerger failed with the following exception: java.lang.NullPointerException
> -----------------------------------------------------------------------------
>
> Key: PDFBOX-1595
> URL: https://issues.apache.org/jira/browse/PDFBOX-1595
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 1.8.1
> Environment: Windows
> Reporter: Ernst Eibensteiner
> Assignee: Andreas Lehmkühler
> Labels: PDFMergerUtility
> Attachments: 2nd Testfile.pdf, bid.pdf
>
>
> Merging 2 PDF documents leads to a null pointer exception:
> From my point of view the PDF document misses the xref and startxref tag.
> java -jar pdfbox-app-1.8.1.jar PDFMerger "bid.pdf" "2nd Testfile.pdf" output.pdf
> Mai 08, 2013 12:52:03 PM org.apache.pdfbox.pdfparser.XrefTrailerResolver setTrailer
> WARNING: Cannot add trailer because XRef start was not signalled.
> Mai 08, 2013 12:52:03 PM org.apache.pdfbox.pdfparser.XrefTrailerResolver setStartxref
> WARNING: Did not found XRef object at specified startxref position 0
> PDFMerger failed with the following exception:
> java.lang.NullPointerException
> at org.apache.pdfbox.util.PDFMergerUtility.appendDocument(PDFMergerUtility.java:257)
> at org.apache.pdfbox.util.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:188)
> at org.apache.pdfbox.PDFMerger.merge(PDFMerger.java:68)
> at org.apache.pdfbox.PDFMerger.main(PDFMerger.java:44)
> at org.apache.pdfbox.PDFBox.main(PDFBox.java:83)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)