[
https://issues.apache.org/jira/browse/PDFBOX-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr resolved PDFBOX-3775.
-------------------------------------
Resolution: Fixed
Assignee: Tilman Hausherr
Fix Version/s: 3.0.0
2.0.6
> 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
> Assignee: Tilman Hausherr
> 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]