|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.PdfStructureElement
public class PdfStructureElement
This is a node in a document logical structure. It may contain a mark point or it may contain other nodes.
Field Summary |
---|
Fields inherited from class com.itextpdf.text.pdf.PdfDictionary |
---|
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES |
Fields inherited from class com.itextpdf.text.pdf.PdfObject |
---|
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
Constructor Summary | |
---|---|
protected |
PdfStructureElement(PdfDictionary parent,
PdfName structureType)
|
|
PdfStructureElement(PdfStructureElement parent,
PdfName structureType)
Creates a new instance of PdfStructureElement. |
|
PdfStructureElement(PdfStructureTreeRoot parent,
PdfName structureType)
Creates a new instance of PdfStructureElement. |
Method Summary | |
---|---|
PdfObject |
getAttribute(PdfName name)
Gets the first entarance of attribute. |
PdfDictionary |
getParent()
Gets the parent of this node. |
PdfDictionary |
getParent(boolean includeStructTreeRoot)
|
PdfIndirectReference |
getReference()
Gets the reference this object will be written to. |
PdfName |
getStructureType()
|
void |
setAttribute(PdfName name,
PdfObject obj)
Sets the attribute value. |
void |
toPdf(PdfWriter writer,
OutputStream os)
Writes the PDF representation of this PdfDictionary as an
array of byte to the given OutputStream . |
void |
writeAttributes(IAccessibleElement element)
|
Methods inherited from class com.itextpdf.text.pdf.PdfDictionary |
---|
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toString |
Methods inherited from class com.itextpdf.text.pdf.PdfObject |
---|
canBeInObjStm, getBytes, getIndRef, 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 |
Constructor Detail |
---|
public PdfStructureElement(PdfStructureElement parent, PdfName structureType)
parent
- the parent of this nodestructureType
- the type of structure. It may be a standard type or a user type mapped by the role mappublic PdfStructureElement(PdfStructureTreeRoot parent, PdfName structureType)
parent
- the parent of this nodestructureType
- the type of structure. It may be a standard type or a user type mapped by the role mapprotected PdfStructureElement(PdfDictionary parent, PdfName structureType)
Method Detail |
---|
public PdfName getStructureType()
public PdfDictionary getParent()
public PdfDictionary getParent(boolean includeStructTreeRoot)
public PdfIndirectReference getReference()
public PdfObject getAttribute(PdfName name)
getAttribute
in interface IPdfStructureElement
public void setAttribute(PdfName name, PdfObject obj)
setAttribute
in interface IPdfStructureElement
public void writeAttributes(IAccessibleElement element)
public void toPdf(PdfWriter writer, OutputStream os) throws IOException
PdfDictionary
PdfDictionary
as an
array of byte
to the given OutputStream
.
toPdf
in class PdfDictionary
writer
- for backwards compatibilityos
- the OutputStream
to write the bytes to.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |