Class PdfStructureTreeRoot
java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.PdfStructureTreeRoot
Deprecated.
The structure tree root corresponds to the highest hierarchy level in a tagged PDF.
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.Map which connects [page number] with corresponding [parentTree entry key]Deprecated.private intDeprecated.Next key to be used for adding to the parentTreeprivate final PdfIndirectReferenceDeprecated.private final PdfWriterDeprecated.Holds value of property writer. -
Constructor Summary
ConstructorsConstructorDescriptionPdfStructureTreeRoot(PdfWriter writer) Deprecated.Creates a new instance of PdfStructureTreeRoot -
Method Summary
Modifier and TypeMethodDescriptionintaddExistingObject(PdfIndirectReference reference) Deprecated.Adds a reference to the existing (already added to the document) object to the parentTree.(package private) voidDeprecated.(package private) intgetOrCreatePageKey(int pageNumber) Deprecated.Returns array ID for a page-related entry or creates a new one if not exists.Deprecated.Gets the reference this object will be written to.Deprecated.Gets the writer.voidDeprecated.Maps the user tags to the standard tags.private voidnodeProcess(PdfDictionary dictionary, PdfIndirectReference reference) Deprecated.(package private) voidsetPageMark(int pageNumber, PdfIndirectReference reference) Deprecated.Methods inherited from class PdfDictionary
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, getKeysAndValues, 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
Deprecated. -
parentTreeNextKey
private int parentTreeNextKeyDeprecated.Next key to be used for adding to the parentTree -
pageKeysMap
-
writer
-
-
Constructor Details
-
PdfStructureTreeRoot
-
-
Method Details
-
mapRole
-
getWriter
-
getReference
Deprecated.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
-
addExistingObject
Deprecated.Adds a reference to the existing (already added to the document) object to the parentTree. This method can be used when the object is need to be referenced via /StructParent key.- Returns:
- key which define the object record key (e.g. in /NUMS array)
-
setPageMark
Deprecated. -
getOrCreatePageKey
int getOrCreatePageKey(int pageNumber) Deprecated.Returns array ID for a page-related entry or creates a new one if not exists. Can be used for STRUCTPARENTS tag value- Parameters:
pageNumber- number of page for which the ID is required- Returns:
- Optional with array ID, empty Optional otherwise
-
nodeProcess
private void nodeProcess(PdfDictionary dictionary, PdfIndirectReference reference) throws IOException Deprecated.- Throws:
IOException
-
buildTree
-