|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<StructureItem>
com.itextpdf.text.pdf.mc.StructureItems
public class StructureItems
Creates a list of StructureItem objects extracted from the Structure Tree of a PDF document.
Field Summary | |
---|---|
protected static Logger |
LOGGER
The Logger instance |
protected HashMap<Integer,PdfObject> |
parentTree
The StructParents number tree values. |
protected PdfDictionary |
structTreeRoot
The StructTreeRoot dictionary |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
StructureItems(PdfReader reader)
Creates a list of StructuredItem objects. |
Method Summary | |
---|---|
int |
processMCID(PdfNumber structParents,
PdfIndirectReference ref)
Creates a new MCID in the parent tree of the page and returns that new MCID so that it can be used in the content stream |
protected void |
processStructElemKids(PdfDictionary structElem,
PdfIndirectReference ref,
PdfObject object)
Processes the kids object of a StructElem dictionary. |
protected void |
processStructElems(PdfDictionary structElem,
PdfIndirectReference ref)
Looks at a StructElem dictionary, and processes it. |
void |
removeFromParentTree(PdfNumber structParent)
Removes a StructParent from the parent tree. |
void |
writeParentTree(PdfWriter writer)
Writes the altered parent tree to a PdfWriter and updates the StructTreeRoot entry. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Field Detail |
---|
protected static final Logger LOGGER
protected PdfDictionary structTreeRoot
protected HashMap<Integer,PdfObject> parentTree
Constructor Detail |
---|
public StructureItems(PdfReader reader) throws DocumentException
reader
- the reader holding the PDF to examine
DocumentException
Method Detail |
---|
protected void processStructElems(PdfDictionary structElem, PdfIndirectReference ref)
structElem
- the StructElem dictionary that needs to be examinedref
- the reference to the StructElem dictionary
DocumentException
protected void processStructElemKids(PdfDictionary structElem, PdfIndirectReference ref, PdfObject object)
structElem
- the StructElem dictionaryref
- the reference to the StructElem dictionaryobject
- the kids objectpublic void removeFromParentTree(PdfNumber structParent)
structParent
- the number to removepublic int processMCID(PdfNumber structParents, PdfIndirectReference ref) throws DocumentException
structParents
- the StructParents entry in the page dictionaryref
- the item for which we need a new MCID
DocumentException
public void writeParentTree(PdfWriter writer) throws IOException
writer
- The writer to which the StructParents have to be written
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |