You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Elias Mauer (Jira)" <ji...@apache.org> on 2019/09/12 13:31:00 UTC

[jira] [Comment Edited] (PDFBOX-4650) Exception in thread "main" java.io.IOException: Missing root object specification in trailer.

    [ https://issues.apache.org/jira/browse/PDFBOX-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16928455#comment-16928455 ] 

Elias Mauer edited comment on PDFBOX-4650 at 9/12/19 1:30 PM:
--------------------------------------------------------------

I fixed it now, there was a bug in my program!

I was writing files and I didnt wait for them to close, therefore the jar had problems in merging them.

Thanks a lot for your time and different solutions.

 


was (Author: snowi):
I fixed it now, there was a bug in my program!

I was writing files and I didnt wait for them to close, therefor the jar had problems in merging them.

Thanks a lot for your time and different solutions.

 

> Exception in thread "main" java.io.IOException: Missing root object specification in trailer.
> ---------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-4650
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4650
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.16
>            Reporter: Elias Mauer
>            Priority: Major
>
> Hey,
> I'm currently experiencing this kind of error and I dont have any clue how to fix it. Tried it now for a couple of hours, but still no clue how to get rid of this error.
> I'm using the latest command-line jar of pdfbox (2.0.16) for the merging process.
> Hopefully someone has a clue how I'm able to fix this asap.
>  
> Exception in thread "main" java.io.IOException: Missing root object specification in trailer.
>  at org.apache.pdfbox.pdfparser.COSParser.parseTrailerValuesDynamically(COSParser.java:2876)
>  at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:175)
>  at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:226)
>  at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1070)
>  at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:991)
>  at org.apache.pdfbox.multipdf.PDFMergerUtility.legacyMergeDocuments(PDFMergerUtility.java:451)
>  at org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:346)
>  at org.apache.pdfbox.tools.PDFMerger.merge(PDFMerger.java:70)
>  at org.apache.pdfbox.tools.PDFMerger.main(PDFMerger.java:49)
>  at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:81)
>  
> Best Regards,
> Elias



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org