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 class
PdfStructTreeController.returnType
-
Field Summary
Fields Modifier and Type Field Description private PdfIndirectReference
nullReference
private PdfDictionary
parentTree
protected PdfReader
reader
private PdfDictionary
roleMap
private PdfDictionary
sourceClassMap
private PdfDictionary
sourceRoleMap
private PdfDictionary
structTreeRoot
private PdfStructureTreeRoot
structureTreeRoot
private PdfCopy
writer
-
Constructor Summary
Constructors Modifier Constructor Description protected
PdfStructTreeController(PdfReader reader, PdfCopy writer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addClass(PdfObject object)
protected void
addKid(PdfDictionary parent, PdfObject kid)
private void
addKid(PdfObject obj)
protected void
addRole(PdfName structType)
protected void
attachStructTreeRootKids(PdfObject firstNotNullKid)
Add kid to structureTreeRoot from structTreeRootstatic boolean
checkTagged(PdfReader reader)
static boolean
compareObjects(PdfObject value1, PdfObject value2)
private PdfStructTreeController.returnType
copyPageMarks(PdfDictionary parentTree, PdfNumber arrayNumber, int newArrayNumber)
void
copyStructTreeForPage(PdfNumber sourceArrayNumber, int newArrayNumber)
private PdfStructTreeController.returnType
findAndCopyMarks(PdfArray pages, int arrayNumber, int newArrayNumber)
private static PdfArray
getDirectArray(PdfArray in)
private static PdfDictionary
getDirectDict(PdfDictionary in)
static PdfObject
getDirectObject(PdfObject object)
(package private) static PdfDictionary
getKDict(PdfDictionary obj)
protected void
setReader(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:
BadPdfFormatException
java.io.IOException
-
copyPageMarks
private PdfStructTreeController.returnType copyPageMarks(PdfDictionary parentTree, PdfNumber arrayNumber, int newArrayNumber) throws BadPdfFormatException, java.io.IOException
- Throws:
BadPdfFormatException
java.io.IOException
-
findAndCopyMarks
private PdfStructTreeController.returnType findAndCopyMarks(PdfArray pages, int arrayNumber, int newArrayNumber) throws BadPdfFormatException, java.io.IOException
- Throws:
BadPdfFormatException
java.io.IOException
-
attachStructTreeRootKids
protected void attachStructTreeRootKids(PdfObject firstNotNullKid) throws java.io.IOException, BadPdfFormatException
Add kid to structureTreeRoot from structTreeRoot- Throws:
java.io.IOException
BadPdfFormatException
-
getKDict
static PdfDictionary getKDict(PdfDictionary obj)
-
addKid
private void addKid(PdfObject obj) throws java.io.IOException, BadPdfFormatException
- Throws:
java.io.IOException
BadPdfFormatException
-
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)
-
-