Class PdfStructureTreeRoot
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.PdfStructureTreeRoot
The structure tree root corresponds to the highest hierarchy level in a tagged PDF.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HashMap
private PdfIndirectReference
private PdfWriter
Holds value of property writer. -
Constructor Summary
ConstructorsConstructorDescriptionPdfStructureTreeRoot
(PdfWriter writer) Creates a new instance of PdfStructureTreeRoot -
Method Summary
Modifier and TypeMethodDescription(package private) void
Gets the reference this object will be written to.Gets the writer.void
Maps the user tags to the standard tags.private void
nodeProcess
(PdfDictionary struc, PdfIndirectReference reference) (package private) void
setPageMark
(int page, PdfIndirectReference struc) Methods inherited from class com.gitlab.pdftk_java.com.lowagie.text.pdf.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, toPdf
Methods inherited from class com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toString, type
-
Field Details
-
parentTree
-
reference
-
writer
Holds value of property writer.
-
-
Constructor Details
-
PdfStructureTreeRoot
PdfStructureTreeRoot(PdfWriter writer) Creates a new instance of PdfStructureTreeRoot
-
-
Method Details
-
mapRole
Maps the user tags to the standard tags. The mapping will allow a standard application to make some sense of the tagged document whatever the user tags may be.- Parameters:
used
- the user tagstandard
- the standard tag
-
getWriter
Gets the writer.- Returns:
- the writer
-
getReference
Gets the reference this object will be written to.- Returns:
- the reference this object will be written to
-
setPageMark
-
nodeProcess
- Throws:
IOException
-
buildTree
- Throws:
IOException
-