com.itextpdf.text.pdf
Class PdfStructureElement

java.lang.Object
  extended by com.itextpdf.text.pdf.PdfObject
      extended by com.itextpdf.text.pdf.PdfDictionary
          extended by com.itextpdf.text.pdf.PdfStructureElement
All Implemented Interfaces:
IPdfStructureElement

public class PdfStructureElement
extends PdfDictionary
implements IPdfStructureElement

This is a node in a document logical structure. It may contain a mark point or it may contain other nodes.

Author:
Paulo Soares

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.
 void setAttribute(PdfName name, PdfObject obj)
          Sets the attribute value.
 void writeAttributes(IAccessibleElement element)
           
 
Methods inherited from class com.itextpdf.text.pdf.PdfDictionary
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, toPdf, 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

PdfStructureElement

public PdfStructureElement(PdfStructureElement parent,
                           PdfName structureType)
Creates a new instance of PdfStructureElement.

Parameters:
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

PdfStructureElement

public PdfStructureElement(PdfStructureTreeRoot parent,
                           PdfName structureType)
Creates a new instance of PdfStructureElement.

Parameters:
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

PdfStructureElement

protected PdfStructureElement(PdfDictionary parent,
                              PdfName structureType)
Method Detail

getParent

public PdfDictionary getParent()
Gets the parent of this node.

Returns:
the parent of this node

getParent

public PdfDictionary getParent(boolean includeStructTreeRoot)

getReference

public PdfIndirectReference getReference()
Gets the reference this object will be written to.

Returns:
the reference this object will be written to
Since:
2.1.6 method removed in 2.1.5, but restored in 2.1.6

getAttribute

public PdfObject getAttribute(PdfName name)
Gets the first entarance of attribute.

Specified by:
getAttribute in interface IPdfStructureElement
Since:
5.3.4

setAttribute

public void setAttribute(PdfName name,
                         PdfObject obj)
Sets the attribute value.

Specified by:
setAttribute in interface IPdfStructureElement
Since:
5.3.4

writeAttributes

public void writeAttributes(IAccessibleElement element)


Copyright © 2013. All Rights Reserved.