com.lowagie.text.pdf.internal

Class PdfAnnotationsImp

public class PdfAnnotationsImp extends Object

Field Summary
protected PdfAcroFormacroForm
This is the AcroForm object for the complete document.
protected ArrayListannotations
This is the array containing the references to annotations that were added to the document.
protected ArrayListdelayedAnnotations
This is an array containg references to some delayed annotations (that were added for a page that doesn't exist yet).
Constructor Summary
PdfAnnotationsImp(PdfWriter writer)
Method Summary
voidaddAnnotation(PdfAnnotation annot)
voidaddCalculationOrder(PdfFormField formField)
voidaddFormFieldRaw(PdfFormField field)
voidaddPlainAnnotation(PdfAnnotation annot)
static PdfAnnotationconvertAnnotation(PdfWriter writer, Annotation annot, Rectangle defaultRect)
PdfAcroFormgetAcroForm()
Gets the AcroForm object.
booleanhasUnusedAnnotations()
booleanhasValidAcroForm()
Checks if the AcroForm is valid.
voidresetAnnotations()
PdfArrayrotateAnnotations(PdfWriter writer, Rectangle pageSize)
voidsetSigFlags(int f)

Field Detail

acroForm

protected PdfAcroForm acroForm
This is the AcroForm object for the complete document.

annotations

protected ArrayList annotations
This is the array containing the references to annotations that were added to the document.

delayedAnnotations

protected ArrayList delayedAnnotations
This is an array containg references to some delayed annotations (that were added for a page that doesn't exist yet).

Constructor Detail

PdfAnnotationsImp

public PdfAnnotationsImp(PdfWriter writer)

Method Detail

addAnnotation

public void addAnnotation(PdfAnnotation annot)

addCalculationOrder

public void addCalculationOrder(PdfFormField formField)

addFormFieldRaw

void addFormFieldRaw(PdfFormField field)

addPlainAnnotation

public void addPlainAnnotation(PdfAnnotation annot)

convertAnnotation

public static PdfAnnotation convertAnnotation(PdfWriter writer, Annotation annot, Rectangle defaultRect)

getAcroForm

public PdfAcroForm getAcroForm()
Gets the AcroForm object.

Returns: the PdfAcroform object of the PdfDocument

hasUnusedAnnotations

public boolean hasUnusedAnnotations()

hasValidAcroForm

public boolean hasValidAcroForm()
Checks if the AcroForm is valid.

resetAnnotations

public void resetAnnotations()

rotateAnnotations

public PdfArray rotateAnnotations(PdfWriter writer, Rectangle pageSize)

setSigFlags

public void setSigFlags(int f)