public class PDObjectReference extends Object implements COSObjectable
This is described as "Entries in an object reference dictionary" in the PDF specification.
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE
TYPE of this object.
|
| Constructor and Description |
|---|
PDObjectReference()
Default Constructor.
|
PDObjectReference(COSDictionary theDictionary)
Constructor for an existing object reference.
|
| Modifier and Type | Method and Description |
|---|---|
COSDictionary |
getCOSObject()
Returns the underlying dictionary.
|
PDPage |
getPage()
Get the page on which the object shall be rendered.
|
COSObjectable |
getReferencedObject()
Gets a higher-level object for the referenced object.
|
void |
setPage(PDPage page)
Sets the page on which the object shall be rendered.
|
void |
setReferencedObject(PDAnnotation annotation)
Sets the referenced annotation.
|
void |
setReferencedObject(PDXObject xobject)
Sets the referenced XObject.
|
public static final String TYPE
public PDObjectReference()
public PDObjectReference(COSDictionary theDictionary)
theDictionary - The existing dictionary.public COSDictionary getCOSObject()
getCOSObject in interface COSObjectablepublic COSObjectable getReferencedObject()
PDAnnotation,
a PDXObject or null.public void setReferencedObject(PDAnnotation annotation)
annotation - the referenced annotationpublic void setReferencedObject(PDXObject xobject)
xobject - the referenced XObjectpublic PDPage getPage()
public void setPage(PDPage page)
page - Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.