public class PdfStructureElement extends PdfDictionary implements IPdfStructureElement
Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
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
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
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)
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
Copyright © 2015. All rights reserved.