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

Tilman Hausherr edited comment on PDFBOX-3401 at 8/7/16 11:23 AM:
------------------------------------------------------------------

Some random thoughts for a later time:
- Annotation can be found here: 
{{Root/StructTreeRoot/ParentTree/Kids/\[1]/Nums/\[1]/\[65]/K/\[0]/Obj}} in 
000671.pdf
- code was introduced in PDBOX-90 for page labels
- the use of {{convertCOSToPD}} was probably copied from other classes



was (Author: tilman):
Annotation can be found here:
Root/StructTreeRoot/ParentTree/Kids/\[1]/Nums/\[1]/\[65]/K/\[0]/Obj

> 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
>         Attachments: 000671.pdf
>
>
> When creating a pdf I am setting a PDAnnotation 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to