Interface CosDocument

All Superinterfaces:
CosObject, Object
All Known Implementing Classes:
GFCosDocument

public interface CosDocument extends CosObject
Low-level PDF Document object
  • Method Details

    • getnrIndirects

      Long getnrIndirects()
      number of indirect objects in the document
    • getheaderVersion

      Double getheaderVersion()
      version of the document
    • getisOptionalContentPresent

      Boolean getisOptionalContentPresent()
      true if the OCProperties key is present in the document Catalog
    • getpostEOFDataSize

      Long getpostEOFDataSize()
      size of data after the EOF and (optional) end of line marker
    • getfirstPageID

      String getfirstPageID()
      id of the first page trailer, if the document is linearized. Null, if the document is not linearized
    • getlastID

      String getlastID()
      id of the last trailer in the document
    • getfirstPageIDValue

      String getfirstPageIDValue()
      string representation of id of the first page trailer, if the document is linearized. Null, if the document is not linearized
    • getlastIDValue

      String getlastIDValue()
      string representation of id of the last trailer in the document
    • getisLinearized

      Boolean getisLinearized()
      true if the document is linearized
    • getheaderOffset

      Long getheaderOffset()
      offset of the PDF document header
    • getheader

      String getheader()
      the content of the PDF header
    • getheaderByte1

      Long getheaderByte1()
      first four bytes in the comment that follows the PDF header
    • getheaderByte2

      Long getheaderByte2()
    • getheaderByte3

      Long getheaderByte3()
    • getheaderByte4

      Long getheaderByte4()
    • getMarked

      Boolean getMarked()
      the value of the /Marked entry in the MarkInfo dictionary (false, if this entry is missing)
    • getRequirements

      String getRequirements()
      string representation of the value of /Requirements key in the document Catalog: - the space-concatenated values of the /S key in the requirement dictionaries in the array referenced by the /Requirements key - empty string if the array of requirement dictionaries is empty; - null, if the /Requirements key is not present in the document Catalog
    • getNeedsRendering

      Boolean getNeedsRendering()
      NeedsRendering entry in the document's Catalog (false by default)
    • getcontainsEmbeddedFiles

      Boolean getcontainsEmbeddedFiles()
      true, if the document contains the EmbeddedFiles entry in the names dictionary
    • getSuspects

      Boolean getSuspects()
      value of the /Suspects entry in the MarkInfo dictionary
    • getDisplayDocTitle

      Boolean getDisplayDocTitle()
      value of the /DisplayDocTitle key in the ViewerPreferences dictionary
    • getcontainsInfo

      Boolean getcontainsInfo()
      true if the trailer dictionary contains Info key
    • getcontainsPieceInfo

      Boolean getcontainsPieceInfo()
      true if the document catalog dictionary contains PieceInfo entry
    • getMarkInfo

      String getMarkInfo()
      string representation of the MarkInfo dictionary
    • getViewerPreferences

      String getViewerPreferences()
      string representation of the ViewerPreferences dictionary