Class FileSpecification

java.lang.Object
com.datalogics.PDFL.FileSpecification

public class FileSpecification extends Object
Refers to the location of a PDF file within a file system. The PDF file system is known more commonly as the file path name.

The reference can be either absolute, as in a complete path name, or relative to the current place in a directory structure.

  • Constructor Details

    • FileSpecification

      public FileSpecification(Document doc, String path)
      Creates a new file specification object.

      Parameters:
      doc - The document in which the file specification is created.
      path - The string corresponding to the path of the file to reference. It may be relative or absolute.
  • Method Details

    • delete

      public void delete()
    • getPath

      public String getPath()
      The path to the file referenced.

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getPDFObject

      public PDFObject getPDFObject()
      Retrieve the PDFObject representation of this object.