Class AttachFile

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

public class AttachFile extends Object implements org.jpedal.manipulator.Manipulation
Embeds files within a document and adds an attachment annotation to a page.
See Also:
  • 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 to
      file - the file to embed
      name - a name to identify the file
      rect - the rect for the file attachment annotation
      color - the color for the annotation
      icon - the icon to use for the annotation. See AnnotationIcons
    • 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 to. You may specify null for all pages.
      file - the file to embed
      name - a name to identify the file
      rect - the rect for the file attachment annotation
      flags - the annotation's flags. See Annotation.getFlagsValue(boolean invisible, boolean hidden, boolean print, boolean noZoom, boolean noRotate, boolean noView, boolean readOnly, boolean locked, boolean toggleNoView, boolean lockedContents)
      contents - text that shall be displayed or null
      color - the color for the annotation
      strokingAlpha - the line transparency value
      nonStrokingAlpha - the fill transparency value
      title - the text for the title bar
      icon - the icon to use for the annotation. See AnnotationIcons