public class PdfStructureElement extends PdfDictionary implements IPdfStructureElement
Modifier | Constructor and Description |
---|---|
protected |
PdfStructureElement(PdfDictionary parent, PdfName structureType, AccessibleElementId elementId) |
|
PdfStructureElement(PdfStructureElement parent, PdfName structureType)
Creates a new instance of PdfStructureElement.
|
|
PdfStructureElement(PdfStructureTreeRoot root, PdfName structureType)
Creates a new instance of PdfStructureElement.
|
Modifier and Type | Method and Description |
---|---|
PdfObject |
getAttribute(PdfName name)
Gets the first entarance of attribute.
|
protected AccessibleElementId |
getElementId() |
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.
|
protected void |
setStructureElementParent(PdfStructureElement parent) |
protected void |
setStructureTreeRoot(PdfStructureTreeRoot root) |
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 node
structureType
- the type of structure. It may be a standard type or a user type mapped by the role map
public PdfStructureElement(PdfStructureTreeRoot root, PdfName structureType)
root
- the parent of this node
structureType
- the type of structure. It may be a standard type or a user type mapped by the role map
protected PdfStructureElement(PdfDictionary parent, PdfName structureType, AccessibleElementId elementId)
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 compatibility
os
- the OutputStream
to write the bytes to.
IOException
protected void setStructureTreeRoot(PdfStructureTreeRoot root)
protected void setStructureElementParent(PdfStructureElement parent)
protected AccessibleElementId getElementId()
Copyright © 1998–2022. All rights reserved.