Package com.aowagie.text.pdf.internal
Class PdfAnnotationsImp
- java.lang.Object
-
- com.aowagie.text.pdf.internal.PdfAnnotationsImp
-
public class PdfAnnotationsImp extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private PdfAcroForm
acroForm
This is the AcroForm object for the complete document.private java.util.ArrayList
annotations
This is the array containing the references to annotations that were added to the document.private java.util.ArrayList
delayedAnnotations
This 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 void
addAnnotation(PdfAnnotation annot)
void
addCalculationOrder(PdfFormField formField)
private void
addFormFieldRaw(PdfFormField field)
void
addPlainAnnotation(PdfAnnotation annot)
static PdfAnnotation
convertAnnotation(PdfWriter writer, Annotation annot, Rectangle defaultRect)
PdfAcroForm
getAcroForm()
Gets the AcroForm object.boolean
hasUnusedAnnotations()
boolean
hasValidAcroForm()
Checks if the AcroForm is valid.void
resetAnnotations()
PdfArray
rotateAnnotations(PdfWriter writer, Rectangle pageSize)
void
setSigFlags(int f)
-
-
-
Field Detail
-
acroForm
private final PdfAcroForm acroForm
This is the AcroForm object for the complete document.
-
annotations
private java.util.ArrayList annotations
This is the array containing the references to annotations that were added to the document.
-
delayedAnnotations
private java.util.ArrayList 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:
true
if the AcroForm is valid,false
otherwise.
-
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)
-
addFormFieldRaw
private void addFormFieldRaw(PdfFormField field)
-
hasUnusedAnnotations
public boolean hasUnusedAnnotations()
-
resetAnnotations
public void resetAnnotations()
-
convertAnnotation
public static PdfAnnotation convertAnnotation(PdfWriter writer, Annotation annot, Rectangle defaultRect) throws java.io.IOException
- Throws:
java.io.IOException
-
-