Class PdfStructTreeController
java.lang.Object
com.itextpdf.text.pdf.PdfStructTreeController
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PdfIndirectReferenceprivate PdfDictionaryprotected PdfReaderprivate PdfDictionaryprivate PdfDictionaryprivate PdfDictionaryprivate PdfDictionaryprivate PdfStructureTreeRootprivate PdfCopy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPdfStructTreeController(PdfReader reader, PdfCopy writer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidaddKid(PdfDictionary parent, PdfObject kid) private voidprotected voidprotected voidattachStructTreeRootKids(PdfObject firstNotNullKid) Add kid to structureTreeRoot from structTreeRootstatic booleancheckTagged(PdfReader reader) static booleancompareObjects(PdfObject value1, PdfObject value2) copyPageMarks(PdfDictionary parentTree, PdfNumber arrayNumber, int newArrayNumber) voidcopyStructTreeForPage(PdfNumber sourceArrayNumber, int newArrayNumber) findAndCopyMarks(PdfArray pages, int arrayNumber, int newArrayNumber) private static PdfArrayprivate static PdfDictionarystatic PdfObjectgetDirectObject(PdfObject object) (package private) static PdfDictionarygetKDict(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:
BadPdfFormatExceptionIOException
-
copyPageMarks
private PdfStructTreeController.returnType copyPageMarks(PdfDictionary parentTree, PdfNumber arrayNumber, int newArrayNumber) throws BadPdfFormatException, IOException - Throws:
BadPdfFormatExceptionIOException
-
findAndCopyMarks
private PdfStructTreeController.returnType findAndCopyMarks(PdfArray pages, int arrayNumber, int newArrayNumber) throws BadPdfFormatException, IOException - Throws:
BadPdfFormatExceptionIOException
-
attachStructTreeRootKids
protected void attachStructTreeRootKids(PdfObject firstNotNullKid) throws IOException, BadPdfFormatException Add kid to structureTreeRoot from structTreeRoot- Throws:
IOExceptionBadPdfFormatException
-
getKDict
-
addKid
- Throws:
IOExceptionBadPdfFormatException
-
getDirectArray
-
getDirectDict
-
compareObjects
-
addClass
- Throws:
BadPdfFormatException
-
addRole
- Throws:
BadPdfFormatException
-
addKid
-