Package org.jpedal.manipulator
Class AttachFile
java.lang.Object
org.jpedal.manipulator.AttachFile
- All Implemented Interfaces:
Manipulation
Embeds files within a document and adds an attachment annotation to a page
-
Constructor Summary
ConstructorsConstructorDescriptionAttachFile
(PageRanges pages, File file, String name, float[] rect, float[] color, String icon) Embeds a file within a document and attaches it to the pages using a FileAttachment annotation. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(org.jpedal.io.annotation.utils.AnnotInfo info) Applies the manipulation to the current document
-
Constructor Details
-
AttachFile
public AttachFile(PageRanges pages, File file, String name, float[] rect, float[] color, String icon) Embeds a file within a document and attaches it to the pages using a FileAttachment annotation.- Parameters:
pages
- the pages to add the annotation tofile
- the file to embedname
- a name to identify the filerect
- the rect for the file attachment annotationcolor
- the color for the annotationicon
- the icon to use for the annotation. SeeAnnotationIcons
-
-
Method Details
-
apply
Description copied from interface:Manipulation
Applies the manipulation to the current document- Specified by:
apply
in interfaceManipulation
- Parameters:
info
- theAnnotInfo
object for the currently loaded document- Throws:
IOException
- if the manipulation cannot be applied to the document
-