Class PdfStructureTreeRoot
java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.PdfStructureTreeRoot
- All Implemented Interfaces:
IPdfStructureElement, Serializable
The structure tree root corresponds to the highest hierarchy level in a tagged PDF.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PdfDictionaryprivate HashMap<Integer, PdfIndirectReference> private PdfIndirectReferenceprivate PdfWriterHolds value of property writer. -
Constructor Summary
ConstructorsConstructorDescriptionPdfStructureTreeRoot(PdfWriter writer) Creates a new instance of PdfStructureTreeRoot -
Method Summary
Modifier and TypeMethodDescription(package private) voidprivate voidgetAttribute(PdfName name) Gets the first entarance of attribute.getMappedClass(PdfName name) Gets the reference this object will be written to.Gets the writer.voidvoidMaps the user tags to the standard tags.(package private) void(package private) voidsetAnnotationMark(int structParentIndex, PdfIndirectReference struc) voidsetAttribute(PdfName name, PdfObject obj) Sets the attribute value.(package private) voidsetPageMark(int page, PdfIndirectReference struc) Methods inherited from class PdfDictionary
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toStringMethods inherited from class PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Field Details
-
parentTree
-
reference
-
classMap
-
classes
-
numTree
-
idTreeMap
-
writer
Holds value of property writer.
-
-
Constructor Details
-
PdfStructureTreeRoot
PdfStructureTreeRoot(PdfWriter writer) Creates a new instance of PdfStructureTreeRoot
-
-
Method Details
-
createNumTree
- Throws:
IOException
-
mapRole
-
mapClass
-
putIDTree
-
getMappedClass
-
getWriter
-
getNumTree
- Throws:
IOException
-
getReference
Gets the reference this object will be written to.- Returns:
- the reference this object will be written to
- Since:
- 2.1.6 method removed in 2.1.5, but restored in 2.1.6
-
setPageMark
-
setAnnotationMark
-
buildTree
- Throws:
IOException
-
getAttribute
Gets the first entarance of attribute.- Specified by:
getAttributein interfaceIPdfStructureElement- Since:
- 5.3.4
-
setAttribute
Sets the attribute value.- Specified by:
setAttributein interfaceIPdfStructureElement- Since:
- 5.3.4
-