Class PdfStructureElement
java.lang.Object
com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfObject
com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfDictionary
com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfStructureElement
This is a node in a document logical structure. It may contain a mark point or it may contain
other nodes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PdfStructureElementHolds value of property kids.private PdfIndirectReferenceHolds value of property reference.private PdfStructureTreeRoot -
Constructor Summary
ConstructorsConstructorDescriptionPdfStructureElement(PdfStructureElement parent, PdfName structureType) Creates a new instance of PdfStructureElement.PdfStructureElement(PdfStructureTreeRoot parent, PdfName structureType) Creates a new instance of PdfStructureElement. -
Method Summary
Modifier and TypeMethodDescriptionGets the parent of this node.Gets the reference this object will be written to.private voidinit(PdfDictionary parent, PdfName structureType) (package private) voidsetPageMark(int page, int mark) Methods inherited from class PdfDictionary
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isDictionaryType, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putDel, putEx, remove, size, toPdfMethods inherited from class PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toString, type
-
Field Details
-
parent
Holds value of property kids. -
top
-
reference
Holds value of property reference.
-
-
Constructor Details
-
PdfStructureElement
Creates a new instance of PdfStructureElement.- Parameters:
parent- the parent of this nodestructureType- the type of structure. It may be a standard type or a user type mapped by the role map
-
PdfStructureElement
Creates a new instance of PdfStructureElement.- Parameters:
parent- the parent of this nodestructureType- the type of structure. It may be a standard type or a user type mapped by the role map
-
-
Method Details
-
init
-
getParent
-
setPageMark
void setPageMark(int page, int mark) -
getReference
Gets the reference this object will be written to.- Returns:
- the reference this object will be written to
-