Package org.jpedal.manipulator
Class AddAnnotation
java.lang.Object
org.jpedal.manipulator.AddAnnotation
- All Implemented Interfaces:
org.jpedal.manipulator.Manipulation
Adds annotations.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAddAnnotation(PageRanges pages, Annotation[] annotations) Adds many annotations to many pages. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAnnotationsToPage(org.jpedal.io.annotation.utils.AnnotBuffer mainBuffer, org.jpedal.io.annotation.utils.AnnotOREF pageRef, List<org.jpedal.io.annotation.utils.AnnotObject> annotationRefs) Adds the created annotations to the page.
-
Constructor Details
-
AddAnnotation
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:
pages- the pages to add the annotations toannotations- 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 documentpageRef- the ref of the page the annotations will be added toannotationRefs- a list of refs of the created annotations- Throws:
IOException- if the document cannot be processed
-