|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.PdfStructureBase
com.lowagie.text.pdf.PdfStructureTreeRoot
public class PdfStructureTreeRoot
The structure tree root corresponds to the highest hierarchy level in a tagged PDF.
| Field Summary | |
|---|---|
private int |
nextMark
|
private Map |
pageMCIDs
|
private HashMap |
parentTree
|
private PdfWriter |
writer
|
| Fields inherited from class com.lowagie.text.pdf.PdfStructureBase |
|---|
kids |
| Fields inherited from class com.lowagie.text.pdf.PdfDictionary |
|---|
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES |
| Fields inherited from class com.lowagie.text.pdf.PdfObject |
|---|
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
| Constructor Summary | |
|---|---|
PdfStructureTreeRoot(PdfWriter writer)
|
|
| Method Summary | |
|---|---|
(package private) void |
buildTree()
|
int |
getMCIDForPage(int pageIdx)
will NPE if pageIdx is unknown |
Integer |
getMCIDForPage(Integer pageIdx)
retrieves the existing MCID for a given page. |
int |
getNextMCID()
returns the next Marked Content ID. |
PdfWriter |
getWriter()
Gets the writer. |
void |
mapRole(PdfName used,
PdfName standard)
Maps the user tags to the standard tags. |
private void |
nodeProcess(PdfDictionary struc,
PdfIndirectReference reference)
|
void |
setObjMark(int objID,
PdfIndirectReference strucRef)
Adds a structure element that is not part of a content item (annots & such) |
int |
setPageMark(int pageIdx,
PdfIndirectReference struc)
Adds a marked content item to the given page. |
void |
setPagesMCID(int pageIdx,
int pageMCID)
Sets the page's MCID. |
| Methods inherited from class com.lowagie.text.pdf.PdfStructureBase |
|---|
addKid, getIndRef |
| Methods inherited from class com.lowagie.text.pdf.PdfDictionary |
|---|
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toString |
| Methods inherited from class com.lowagie.text.pdf.PdfObject |
|---|
canBeInObjStm, getBytes, getDirectObject, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private HashMap parentTree
private Map pageMCIDs
private int nextMark
private PdfWriter writer
| Constructor Detail |
|---|
PdfStructureTreeRoot(PdfWriter writer)
writer - a VALID PdfWriter. Or else.| Method Detail |
|---|
public void mapRole(PdfName used,
PdfName standard)
used - the user tagstandard - the standard tagpublic PdfWriter getWriter()
getWriter in class PdfStructureBasepublic int getNextMCID()
public void setPagesMCID(int pageIdx,
int pageMCID)
pageIdx - That page thing we were just talking about.pageMCID - The MCID for the page... Do try and keep up.public int getMCIDForPage(int pageIdx)
pageIdx -
public Integer getMCIDForPage(Integer pageIdx)
pageIdx -
public int setPageMark(int pageIdx,
PdfIndirectReference struc)
pageIdx - durhstruc - An indirect reference to the *structure element*
public void setObjMark(int objID,
PdfIndirectReference strucRef)
objID - strucRef -
private void nodeProcess(PdfDictionary struc,
PdfIndirectReference reference)
throws IOException
IOException
void buildTree()
throws IOException
IOException
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||