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

Tilman Hausherr commented on PDFBOX-3775:
-----------------------------------------

Should work now. Snapshot available here:
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.6-SNAPSHOT/

> Merge documents fails due to IllegalArgumentException
> -----------------------------------------------------
>
>                 Key: PDFBOX-3775
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3775
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.5
>            Reporter: Jorge Spinsanti
>             Fix For: 2.0.6, 3.0.0
>
>         Attachments: IllegalArgumentException.pdf
>
>
> When I tried to merge documents and one of them is a PDF file similar to 
> attached file, I got an IllegalArgumentException. See stacktrace:
> {code}
> java.lang.IllegalArgumentException: Full
>       at org.apache.pdfbox.pdmodel.PageMode.fromString(PageMode.java:71) 
> ~[pdfbox-2.0.5.jar:2.0.5]
>       at 
> org.apache.pdfbox.pdmodel.PDDocumentCatalog.getPageMode(PDDocumentCatalog.java:440)
>  ~[pdfbox-2.0.5.jar:2.0.5]
>       at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:451)
>  ~[pdfbox-2.0.5.jar:2.0.5]
>       at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:261)
>  ~[pdfbox-2.0.5.jar:2.0.5]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to