public class PdfAnnotationsImp extends Object
Modifier and Type | Field and Description |
---|---|
protected PdfAcroForm |
acroForm
This is the AcroForm object for the complete document.
|
protected ArrayList<PdfAnnotation> |
annotations
This is the array containing the references to annotations
that were added to the document.
|
protected ArrayList<PdfAnnotation> |
delayedAnnotations
This is an array containing references to some delayed annotations
(that were added for a page that doesn't exist yet).
|
Constructor and Description |
---|
PdfAnnotationsImp(PdfWriter writer) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(PdfAnnotation annot) |
void |
addCalculationOrder(PdfFormField formField) |
(package 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) |
protected PdfAcroForm acroForm
protected ArrayList<PdfAnnotation> annotations
protected ArrayList<PdfAnnotation> delayedAnnotations
public PdfAnnotationsImp(PdfWriter writer)
public boolean hasValidAcroForm()
public PdfAcroForm getAcroForm()
public void setSigFlags(int f)
public void addCalculationOrder(PdfFormField formField)
public void addAnnotation(PdfAnnotation annot)
public void addPlainAnnotation(PdfAnnotation annot)
void addFormFieldRaw(PdfFormField field)
public boolean hasUnusedAnnotations()
public void resetAnnotations()
public PdfArray rotateAnnotations(PdfWriter writer, Rectangle pageSize)
public static PdfAnnotation convertAnnotation(PdfWriter writer, Annotation annot, Rectangle defaultRect) throws IOException
IOException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses