public class StructureObject extends StructureItem
Modifier and Type | Field and Description |
---|---|
protected PdfObject |
obj
An object referred to by an OBJR dictionary.
|
protected PdfIndirectReference |
objref
The reference to the object.
|
protected PdfIndirectReference |
ref
The reference of the structure element of which the properties are stored.
|
protected PdfDictionary |
structElem
The structure element of which the properties are stored.
|
protected int |
structParent
The StructParent value of the object.
|
pageref
Constructor and Description |
---|
StructureObject(PdfDictionary structElem, PdfIndirectReference ref, PdfDictionary dict)
Creates a StructureObject for an OBJR dictionary.
|
Modifier and Type | Method and Description |
---|---|
int |
checkStructParent(int pg, int sp)
Checks if a StructParent corresponds with the StructParent stored in the object.
|
PdfDictionary |
getObjAsDict()
Returns the object referred to by the OBJR dictionary.
|
PdfIndirectReference |
getObjRef()
Returns the reference to the object.
|
PdfIndirectReference |
getRef()
Returns the structure element's reference.
|
PdfDictionary |
getStructElem()
Returns the structure element.
|
String |
toString()
Creates a String representation of the object.
|
checkMCID, getPageref
protected PdfDictionary structElem
protected PdfIndirectReference ref
protected PdfObject obj
protected PdfIndirectReference objref
protected int structParent
public StructureObject(PdfDictionary structElem, PdfIndirectReference ref, PdfDictionary dict) throws InvalidPdfException
structElem
- the parent structure element
ref
- the reference of the parent structure element
dict
- the object reference dictionary
InvalidPdfException
public PdfDictionary getStructElem()
public PdfIndirectReference getRef()
public PdfDictionary getObjAsDict()
public PdfIndirectReference getObjRef()
public int checkStructParent(int pg, int sp)
checkStructParent
in class StructureItem
pg
- the page reference that needs to be checked
sp
- the structParent that needs to be checked
public String toString()
toString
in class Object
Object.toString()
Copyright © 1998–2024. All rights reserved.