Package com.itextpdf.text.pdf
Class PdfStructTreeController
java.lang.Object
com.itextpdf.text.pdf.PdfStructTreeController
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PdfIndirectReference
private PdfDictionary
protected PdfReader
private PdfDictionary
private PdfDictionary
private PdfDictionary
private PdfDictionary
private PdfStructureTreeRoot
private PdfCopy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PdfStructTreeController
(PdfReader reader, PdfCopy writer) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
addKid
(PdfDictionary parent, PdfObject kid) private void
protected void
protected void
attachStructTreeRootKids
(PdfObject firstNotNullKid) Add kid to structureTreeRoot from structTreeRootstatic boolean
checkTagged
(PdfReader reader) static boolean
compareObjects
(PdfObject value1, PdfObject value2) copyPageMarks
(PdfDictionary parentTree, PdfNumber arrayNumber, int newArrayNumber) void
copyStructTreeForPage
(PdfNumber sourceArrayNumber, int newArrayNumber) findAndCopyMarks
(PdfArray pages, int arrayNumber, int newArrayNumber) private static PdfArray
private static PdfDictionary
static PdfObject
getDirectObject
(PdfObject object) (package private) static PdfDictionary
getKDict
(PdfDictionary obj) protected void
-
Field Details
-
structTreeRoot
-
writer
-
structureTreeRoot
-
parentTree
-
reader
-
roleMap
-
sourceRoleMap
-
sourceClassMap
-
nullReference
-
-
Constructor Details
-
PdfStructTreeController
- Throws:
BadPdfFormatException
-
-
Method Details
-
setReader
- Throws:
BadPdfFormatException
-
checkTagged
-
getDirectObject
-
copyStructTreeForPage
public void copyStructTreeForPage(PdfNumber sourceArrayNumber, int newArrayNumber) throws BadPdfFormatException, IOException - Throws:
BadPdfFormatException
IOException
-
copyPageMarks
private PdfStructTreeController.returnType copyPageMarks(PdfDictionary parentTree, PdfNumber arrayNumber, int newArrayNumber) throws BadPdfFormatException, IOException - Throws:
BadPdfFormatException
IOException
-
findAndCopyMarks
private PdfStructTreeController.returnType findAndCopyMarks(PdfArray pages, int arrayNumber, int newArrayNumber) throws BadPdfFormatException, IOException - Throws:
BadPdfFormatException
IOException
-
attachStructTreeRootKids
protected void attachStructTreeRootKids(PdfObject firstNotNullKid) throws IOException, BadPdfFormatException Add kid to structureTreeRoot from structTreeRoot- Throws:
IOException
BadPdfFormatException
-
getKDict
-
addKid
- Throws:
IOException
BadPdfFormatException
-
getDirectArray
-
getDirectDict
-
compareObjects
-
addClass
- Throws:
BadPdfFormatException
-
addRole
- Throws:
BadPdfFormatException
-
addKid
-