Class PDFReal

java.lang.Object
com.datalogics.PDFL.PDFObject
com.datalogics.PDFL.PDFReal

public class PDFReal extends PDFObject
Represents a floating point data element within a PDF document. All objects in a PDF document are built from a collection of simpler objects that represent fundamental datatypes like numbers, strings and arrays. PDFObject and its subclasses allow direct access and manipulation of these simple objects. Some subclasses represent single data elements. For example, PDFReal represents a single floating point value. Others represent a collection of PDFObjects, such as PDFArray, an indexed array of data elements.

A PDFReal represents a single floating point value, and may be inserted into any collection object.

  • Constructor Details

    • PDFReal

      public PDFReal(double value, Document doc, boolean indirect)
      General constructor

      Parameters:
      value - Double value of this PDFReal
      doc - Document object containing this PDFReal
      indirect - flag marking this as an indirect PDFObject
    • PDFReal

      public PDFReal(double value, PDFObject docFromObj, boolean indirect)
      General constructor

      Parameters:
      value - Double value of this PDFReal
      docFromObj - The new PDFArray will be created in the same document as this object.
      indirect - flag marking this as an indirect PDFObject
  • Method Details

    • delete

      public void delete()
      Overrides:
      delete in class PDFObject
    • toString

      public String toString()
      Overrides:
      toString in class PDFObject
    • getValue

      public double getValue()
      Floating-point value of this object.