Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.9, 2.0.2, 2.0.3, 3.0.0 PDFBox
Description
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.