[ https://issues.apache.org/jira/browse/PDFBOX-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13895703#comment-13895703 ]
Ernst Eibensteiner commented on PDFBOX-1595: -------------------------------------------- Sehr geehrte Damen und Herren, ich bin derzeit nicht im Büro. Bitte beachten Sie, dass Ihre E-Mail nicht automatisch weitergeleitet wird. Mit freundlichen Grüßen Ernst Eibensteiner Dear Sir/Madam, I am currently out of the office. Incoming e-mails will not be forwarded automatically. Yours sincerely Ernst Eibensteiner > 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 > 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.1.5#6160)