Class EmbedFile

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

public class EmbedFile extends Object implements Manipulation
Embeds files within a document
  • Constructor Summary

    Constructors
    Constructor
    Description
    EmbedFile(File file, String name)
    Embeds files within a document
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(org.jpedal.io.annotation.utils.AnnotInfo info)
    Applies the manipulation to the current document
    static org.jpedal.io.annotation.utils.AnnotString
    Converts a file time object into a PDF time string

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EmbedFile

      public EmbedFile(File file, String name)
      Embeds files within a document
      Parameters:
      file - the file to embed
      name - a name to identify file
  • 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
    • convertFileTimeToPdfDate

      public static org.jpedal.io.annotation.utils.AnnotString convertFileTimeToPdfDate(FileTime fileTime)
      Converts a file time object into a PDF time string
      Parameters:
      fileTime - the file time to convert
      Returns:
      the time as a PDF time string