com.lowagie.text.pdf

Class PdfStructureBase

abstract class PdfStructureBase extends PdfDictionary

The PdfStructureBase class, which handles basic common functionality between PdfStructureElement and PdfStructureTreeRoot. Not for public consumption.

Since: 2.1.5

Author: mstorer

Field Summary
protected PdfArraykids
Constructor Summary
PdfStructureBase(PdfName dicType)
PdfStructureBase()
child class responsible for 'reference'
Method Summary
voidaddKid(PdfStructureElement kid)
Keep in mind that reading order is determined solely by the order in which kids are added... not by MCID.
PdfIndirectReferencegetIndRef()
Gets the reference this object will be written to.
protected abstract PdfWritergetWriter()

Field Detail

kids

protected PdfArray kids

Constructor Detail

PdfStructureBase

public PdfStructureBase(PdfName dicType)

PdfStructureBase

public PdfStructureBase()
child class responsible for 'reference'

Method Detail

addKid

public void addKid(PdfStructureElement kid)
Keep in mind that reading order is determined solely by the order in which kids are added... not by MCID.

Parameters: kid a structure element that will be a child of 'this'.

Throws: IllegalArgumentException if 'this' has a /k entry already that isn't for holding children

getIndRef

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

Returns: the reference this object will be written to

getWriter

protected abstract PdfWriter getWriter()