Class PDFInteger

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

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

A PDFInteger represents a single integer value, and may be inserted into any collection object.

  • Constructor Details

    • PDFInteger

      public PDFInteger(int value, Document doc, boolean indirect)
      General constructor

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

      public PDFInteger(int value, PDFObject docFromObj, boolean indirect)
      General constructor

      Parameters:
      value - Integer value of this PDFInteger
      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 int getValue()
      Integer value of this object.