[
https://issues.apache.org/jira/browse/PDFBOX-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15993618#comment-15993618
]
ASF subversion and git services commented on PDFBOX-3775:
---------------------------------------------------------
Commit 1793585 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1793585 ]
PDFBOX-3775: return UseNone instead of throwing IllegalArgumentException for
bad page modes
> 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
> 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]