Class AttachFile

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

public class AttachFile extends Object implements Manipulation
Embeds files within a document and adds an attachment annotation to a page
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(org.jpedal.io.annotation.utils.AnnotInfo info)
    Applies the manipulation to the current document

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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
  • Method Details

    • apply

      public void apply(org.jpedal.io.annotation.utils.AnnotInfo info) throws IOException
      Description copied from interface: Manipulation
      Applies the manipulation to the current document
      Specified by:
      apply in interface Manipulation
      Parameters:
      info - the AnnotInfo object for the currently loaded document
      Throws:
      IOException - if the manipulation cannot be applied to the document