com.lowagie.text.pdf

Class PdfStructureTreeRoot

public class PdfStructureTreeRoot extends PdfDictionary

The structure tree root corresponds to the highest hierarchy level in a tagged PDF.

Author: Paulo Soares (psoares@consiste.pt)

Field Summary
HashMapparentTree
PdfIndirectReferencereference
PdfWriterwriter
Holds value of property writer.
Constructor Summary
PdfStructureTreeRoot(PdfWriter writer)
Creates a new instance of PdfStructureTreeRoot
Method Summary
voidbuildTree()
PdfIndirectReferencegetReference()
Gets the reference this object will be written to.
PdfWritergetWriter()
Gets the writer.
voidmapRole(PdfName used, PdfName standard)
Maps the user tags to the standard tags.
voidnodeProcess(PdfDictionary struc, PdfIndirectReference reference)
voidsetPageMark(int page, PdfIndirectReference struc)

Field Detail

parentTree

private HashMap parentTree

reference

private PdfIndirectReference reference

writer

private PdfWriter writer
Holds value of property writer.

Constructor Detail

PdfStructureTreeRoot

PdfStructureTreeRoot(PdfWriter writer)
Creates a new instance of PdfStructureTreeRoot

Method Detail

buildTree

void buildTree()

getReference

public PdfIndirectReference getReference()
Gets the reference this object will be written to.

Returns: the reference this object will be written to

Since: 2.1.6 method removed in 2.1.5, but restored in 2.1.6

getWriter

public PdfWriter getWriter()
Gets the writer.

Returns: the writer

mapRole

public void mapRole(PdfName used, PdfName standard)
Maps the user tags to the standard tags. The mapping will allow a standard application to make some sense of the tagged document whatever the user tags may be.

Parameters: used the user tag standard the standard tag

nodeProcess

private void nodeProcess(PdfDictionary struc, PdfIndirectReference reference)

setPageMark

void setPageMark(int page, PdfIndirectReference struc)