public class PdfAnnotationsImp extends Object
Modifier and Type | Field and Description |
---|---|
protected PdfAcroForm |
acroForm
This is the AcroForm object for the complete document.
|
protected List<PdfAnnotation> |
annotations
This is the array containing the references to annotations
that were added to the document.
|
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 and Description |
---|
PdfAnnotationsImp(PdfWriter writer) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(PdfAnnotation annot) |
void |
addCalculationOrder(PdfFormField formField) |
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 List<PdfAnnotation> annotations
protected List<PdfAnnotation> delayedAnnotations
public PdfAnnotationsImp(PdfWriter writer)
public boolean hasValidAcroForm()
true
if valid else false
public PdfAcroForm getAcroForm()
public void setSigFlags(int f)
public void addCalculationOrder(PdfFormField formField)
public void addAnnotation(PdfAnnotation annot)
public void addPlainAnnotation(PdfAnnotation annot)
public boolean hasUnusedAnnotations()
public void resetAnnotations()
public static PdfAnnotation convertAnnotation(PdfWriter writer, Annotation annot, Rectangle defaultRect) throws IOException
IOException
Copyright © 2020. All rights reserved.