Package org.jpedal.manipulator
Class AttachFile
java.lang.Object
org.jpedal.manipulator.AttachFile
- All Implemented Interfaces:
org.jpedal.manipulator.Manipulation
Embeds files within a document and adds an attachment annotation to a page.
See PdfManipulator.attachFile(int, File, String, float[], float[])
-
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.AttachFile(PageRanges pages, File file, String name, float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, String title, String icon) Embeds a file within a document and attaches it to the pages using a FileAttachment annotation. -
Method Summary
-
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
-
AttachFile
public AttachFile(PageRanges pages, File file, String name, float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, String title, 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 annotationflags- the annotation's flags. SeeAnnotation.getFlagsValue(boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean)contents- text that shall be displayed or nullcolor- the color for the annotationstrokingAlpha- the line transparency valuenonStrokingAlpha- the fill transparency valuetitle- the text for the title baricon- the icon to use for the annotation. SeeAnnotationIcons
-