com.itextpdf.text.pdf.internal
Class PdfAnnotationsImp

java.lang.Object
  extended by com.itextpdf.text.pdf.internal.PdfAnnotationsImp

public class PdfAnnotationsImp
extends Object


Field Summary
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 Summary
PdfAnnotationsImp(PdfWriter writer)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

acroForm

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


annotations

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


delayedAnnotations

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 Detail

PdfAnnotationsImp

public PdfAnnotationsImp(PdfWriter writer)
Method Detail

hasValidAcroForm

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


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()

rotateAnnotations

public PdfArray rotateAnnotations(PdfWriter writer,
                                  Rectangle pageSize)

convertAnnotation

public static PdfAnnotation convertAnnotation(PdfWriter writer,
                                              Annotation annot,
                                              Rectangle defaultRect)
                                       throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.