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

ASF subversion and git services commented on PDFBOX-3473:
---------------------------------------------------------

Commit 1757566 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1757566 ]

PDFBOX-3473: avoid exception is resources are missing in a page

> IllegalArgumentException: resourceDictionary is null in PDFMerger (2)
> ---------------------------------------------------------------------
>
>                 Key: PDFBOX-3473
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3473
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.2, 2.0.3, 2.1.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.3, 2.1.0
>
>
> As reported in PDFBOX-2546 by [~mkrivan]
> {code}
> Caused by: java.lang.IllegalArgumentException: resourceDictionary is null
> at org.apache.pdfbox.pdmodel.PDResources.<init>(PDResources.java:70)
> at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:559)
> at 
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:261)
> {code}
> The cause is an empty PDPage, i.e. without resources.
> {quote}
> (Required; inheritable) A dictionary containing any resources required by the 
> page (see 7.8.3, "Resource Dictionaries"). If the page requires no resources, 
> the value of this entry shall be an empty dictionary. Omitting the entry 
> entirely indicates that the resources shall be inherited from an ancestor 
> node in the page tree.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to