Package com.itextpdf.text.pdf
Class PdfStructTreeController
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfStructTreeController
-
public class PdfStructTreeController extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPdfStructTreeController.returnType
-
Field Summary
Fields Modifier and Type Field Description private PdfIndirectReferencenullReferenceprivate PdfDictionaryparentTreeprotected PdfReaderreaderprivate PdfDictionaryroleMapprivate PdfDictionarysourceClassMapprivate PdfDictionarysourceRoleMapprivate PdfDictionarystructTreeRootprivate PdfStructureTreeRootstructureTreeRootprivate PdfCopywriter
-
Constructor Summary
Constructors Modifier Constructor Description protectedPdfStructTreeController(PdfReader reader, PdfCopy writer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddClass(PdfObject object)protected voidaddKid(PdfDictionary parent, PdfObject kid)private voidaddKid(PdfObject obj)protected voidaddRole(PdfName structType)protected voidattachStructTreeRootKids(PdfObject firstNotNullKid)Add kid to structureTreeRoot from structTreeRootstatic booleancheckTagged(PdfReader reader)static booleancompareObjects(PdfObject value1, PdfObject value2)private PdfStructTreeController.returnTypecopyPageMarks(PdfDictionary parentTree, PdfNumber arrayNumber, int newArrayNumber)voidcopyStructTreeForPage(PdfNumber sourceArrayNumber, int newArrayNumber)private PdfStructTreeController.returnTypefindAndCopyMarks(PdfArray pages, int arrayNumber, int newArrayNumber)private static PdfArraygetDirectArray(PdfArray in)private static PdfDictionarygetDirectDict(PdfDictionary in)static PdfObjectgetDirectObject(PdfObject object)(package private) static PdfDictionarygetKDict(PdfDictionary obj)protected voidsetReader(PdfReader reader)
-
-
-
Field Detail
-
structTreeRoot
private PdfDictionary structTreeRoot
-
writer
private PdfCopy writer
-
structureTreeRoot
private PdfStructureTreeRoot structureTreeRoot
-
parentTree
private PdfDictionary parentTree
-
reader
protected PdfReader reader
-
roleMap
private PdfDictionary roleMap
-
sourceRoleMap
private PdfDictionary sourceRoleMap
-
sourceClassMap
private PdfDictionary sourceClassMap
-
nullReference
private PdfIndirectReference nullReference
-
-
Constructor Detail
-
PdfStructTreeController
protected PdfStructTreeController(PdfReader reader, PdfCopy writer) throws BadPdfFormatException
- Throws:
BadPdfFormatException
-
-
Method Detail
-
setReader
protected void setReader(PdfReader reader) throws BadPdfFormatException
- Throws:
BadPdfFormatException
-
checkTagged
public static boolean checkTagged(PdfReader reader)
-
copyStructTreeForPage
public void copyStructTreeForPage(PdfNumber sourceArrayNumber, int newArrayNumber) throws BadPdfFormatException, java.io.IOException
- Throws:
BadPdfFormatExceptionjava.io.IOException
-
copyPageMarks
private PdfStructTreeController.returnType copyPageMarks(PdfDictionary parentTree, PdfNumber arrayNumber, int newArrayNumber) throws BadPdfFormatException, java.io.IOException
- Throws:
BadPdfFormatExceptionjava.io.IOException
-
findAndCopyMarks
private PdfStructTreeController.returnType findAndCopyMarks(PdfArray pages, int arrayNumber, int newArrayNumber) throws BadPdfFormatException, java.io.IOException
- Throws:
BadPdfFormatExceptionjava.io.IOException
-
attachStructTreeRootKids
protected void attachStructTreeRootKids(PdfObject firstNotNullKid) throws java.io.IOException, BadPdfFormatException
Add kid to structureTreeRoot from structTreeRoot- Throws:
java.io.IOExceptionBadPdfFormatException
-
getKDict
static PdfDictionary getKDict(PdfDictionary obj)
-
addKid
private void addKid(PdfObject obj) throws java.io.IOException, BadPdfFormatException
- Throws:
java.io.IOExceptionBadPdfFormatException
-
getDirectDict
private static PdfDictionary getDirectDict(PdfDictionary in)
-
addClass
protected void addClass(PdfObject object) throws BadPdfFormatException
- Throws:
BadPdfFormatException
-
addRole
protected void addRole(PdfName structType) throws BadPdfFormatException
- Throws:
BadPdfFormatException
-
addKid
protected void addKid(PdfDictionary parent, PdfObject kid)
-
-