Class AddAnnotation

java.lang.Object
org.jpedal.manipulator.AddAnnotation
All Implemented Interfaces:
org.jpedal.manipulator.Manipulation

public class AddAnnotation extends Object implements org.jpedal.manipulator.Manipulation
Adds annotations.
See Also:
  • Constructor Details

    • AddAnnotation

      public AddAnnotation(PdfManipulator pdfManipulator, PageRanges pages, Annotation[] annotations)
      Adds many annotations to many pages.

      Note: if you would like to add a FileAttachment annotation, see PdfManipulator.attachFile(int, File, String, float[], float[])

      Parameters:
      pdfManipulator - the PdfManipulator object for the currently loaded document
      pages - the pages to add the annotations to. You may specify null for all pages.
      annotations - the annotations to add
  • Method Details

    • addAnnotationsToPage

      public static void addAnnotationsToPage(org.jpedal.io.annotation.utils.AnnotBuffer mainBuffer, org.jpedal.io.annotation.utils.AnnotOREF pageRef, List<org.jpedal.io.annotation.utils.AnnotObject> annotationRefs) throws IOException
      Adds the created annotations to the page.
      Parameters:
      mainBuffer - the main AnnotBuffer for the currently loaded document
      pageRef - the ref of the page the annotations will be added to
      annotationRefs - a list of refs of the created annotations
      Throws:
      IOException - if the document cannot be processed