public class PDFStructureTreeBuilder extends java.lang.Object implements StructureTreeEventHandler
Constructor and Description |
---|
PDFStructureTreeBuilder() |
Modifier and Type | Method and Description |
---|---|
static PDFStructElem |
createStructureElement(java.lang.String name,
StructureHierarchyMember parent,
org.xml.sax.Attributes attributes,
PDFFactory pdfFactory,
EventBroadcaster eventBroadcaster) |
void |
endNode(java.lang.String name)
Ends a structure tree node.
|
void |
endPageSequence()
Ends a page sequence structure tree node.
|
StructureTreeElement |
startImageNode(java.lang.String name,
org.xml.sax.Attributes attributes,
StructureTreeElement parent)
Starts an image node.
|
StructureTreeElement |
startNode(java.lang.String name,
org.xml.sax.Attributes attributes,
StructureTreeElement parent)
Starts a structure tree node.
|
void |
startPageSequence(java.util.Locale language,
java.lang.String role)
Starts a page sequence structure tree node.
|
StructureTreeElement |
startReferencedNode(java.lang.String name,
org.xml.sax.Attributes attributes,
StructureTreeElement parent)
Starts a node that can be referenced by other nodes.
|
public static PDFStructElem createStructureElement(java.lang.String name, StructureHierarchyMember parent, org.xml.sax.Attributes attributes, PDFFactory pdfFactory, EventBroadcaster eventBroadcaster)
public void startPageSequence(java.util.Locale language, java.lang.String role)
StructureTreeEventHandler
startPageSequence
in interface StructureTreeEventHandler
language
- The locale of the page sequencerole
- the value of the role property. May be null.public void endPageSequence()
StructureTreeEventHandler
endPageSequence
in interface StructureTreeEventHandler
public StructureTreeElement startNode(java.lang.String name, org.xml.sax.Attributes attributes, StructureTreeElement parent)
StructureTreeEventHandler
startNode
in interface StructureTreeEventHandler
name
- the name of the structure tree nodeattributes
- the node propertiesparent
- the parent of the node. May be null, in which case the parent node is
the node corresponding to the previous call to this methodpublic void endNode(java.lang.String name)
StructureTreeEventHandler
endNode
in interface StructureTreeEventHandler
name
- the name of the structure tree nodepublic StructureTreeElement startImageNode(java.lang.String name, org.xml.sax.Attributes attributes, StructureTreeElement parent)
StructureTreeEventHandler
startImageNode
in interface StructureTreeEventHandler
name
- the name of the structure tree nodeattributes
- the node propertiesparent
- the parent of the node. May be null, in which case the parent node is
the node corresponding to the previous call to this methodpublic StructureTreeElement startReferencedNode(java.lang.String name, org.xml.sax.Attributes attributes, StructureTreeElement parent)
StructureTreeEventHandler
startReferencedNode
in interface StructureTreeEventHandler
name
- the name of the structure tree nodeattributes
- the node propertiesparent
- the parent of the node. May be null, in which case the parent node is
the node corresponding to the previous call to this methodCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.