Package com.lowagie.text.pdf.internal
Class PdfAnnotationsImp
- java.lang.Object
-
- com.lowagie.text.pdf.internal.PdfAnnotationsImp
-
public class PdfAnnotationsImp extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected PdfAcroFormacroFormThis is the AcroForm object for the complete document.protected List<PdfAnnotation>annotationsThis is the array containing the references to annotations that were added to the document.protected List<PdfAnnotation>delayedAnnotationsThis is an array containing references to some delayed annotations (that were added for a page that doesn't exist yet).
-
Constructor Summary
Constructors Constructor Description PdfAnnotationsImp(PdfWriter writer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAnnotation(PdfAnnotation annot)voidaddCalculationOrder(PdfFormField formField)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 List<PdfAnnotation> annotations
This is the array containing the references to annotations that were added to the document.
-
delayedAnnotations
protected List<PdfAnnotation> delayedAnnotations
This is an array containing 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
-
hasValidAcroForm
public boolean hasValidAcroForm()
Checks if the AcroForm is valid.- Returns:
- boolean,
trueif valid elsefalse
-
getAcroForm
public PdfAcroForm getAcroForm()
Gets the AcroForm object.- Returns:
- the PdfAcroform object of the PdfDocument
-
setSigFlags
public void setSigFlags(int f)
-
addCalculationOrder
public void addCalculationOrder(PdfFormField formField)
-
addAnnotation
public void addAnnotation(PdfAnnotation annot)
-
addPlainAnnotation
public void addPlainAnnotation(PdfAnnotation annot)
-
hasUnusedAnnotations
public boolean hasUnusedAnnotations()
-
resetAnnotations
public void resetAnnotations()
-
convertAnnotation
public static PdfAnnotation convertAnnotation(PdfWriter writer, Annotation annot, Rectangle defaultRect) throws IOException
- Throws:
IOException
-
-