You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/06/27 15:42:52 UTC

[jira] [Commented] (PDFBOX-3401) PDObjectReference getReferencedObject() returns null is referenced obj is not a COSStream

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

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

Commit 1750363 from [~tilman] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1750363 ]

PDFBOX-3401: call PDXObject.createXObject() only if parameter is a COSStream

> PDObjectReference getReferencedObject() returns null is referenced obj is not a COSStream
> -----------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-3401
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3401
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.8.9, 2.0.2, 2.0.3, 2.1.0
>            Reporter: Mark Melling
>
> When creating a pdf I am setting a PDAnnoation as the referenced object of a PDObjectReference using setReferencedObject.
> When I subsequently load the same document and then call getReferencedObject on the PDObjectReference, null is returned. This is because an exception is thrown in PDXObject.createXObject (called inside getReferencedObject) as the referenced object is not a COSStream, just a COSDictionary.



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

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