IPdfStructureElement
, java.io.Serializable
public class PdfStructureElement extends PdfDictionary implements IPdfStructureElement
Modifier | Constructor | 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 | 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,
java.io.OutputStream os) |
Writes the PDF representation of this
PdfDictionary as an
array of byte to the given OutputStream . |
void |
writeAttributes(IAccessibleElement element) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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 root, PdfName structureType)
root
- 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, 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, java.io.OutputStream os) throws java.io.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.java.io.IOException
protected void setStructureTreeRoot(PdfStructureTreeRoot root)
protected void setStructureElementParent(PdfStructureElement parent)
protected AccessibleElementId getElementId()
Copyright © 1998–2018. All rights reserved.