Class PDFBoolean

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

public class PDFBoolean extends PDFObject
Represents a boolean 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, PDFBoolean represents a single boolean value. Others represent a collection of PDFObjects, such as PDFArray, an indexed array of data elements.

A PDFBoolean represents a single boolean value, and may be inserted into any collection object.

  • Constructor Details

    • PDFBoolean

      public PDFBoolean(boolean value, Document doc, boolean indirect)
      General constructor

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

      public PDFBoolean(boolean value, PDFObject docFromObj, boolean indirect)
      General constructor

      Parameters:
      value - Boolean value of this PDFBoolean
      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 boolean getValue()
      Boolean value of this object.