Interface CompressedObject

All Known Implementing Classes:
PageSequenceStructElem, PDFStructElem, PDFStructElem.Placeholder, TableStructElem

interface CompressedObject
Represents a PDF object that may appear in an object stream. An object stream is a PDF stream whose content is a sequence of PDF objects. See Section 3.4.6 of the PDF 1.5 Reference.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the object number of this indirect object.
    int
    output(OutputStream outputStream)
    Outputs this object's content into the given stream.
  • Method Details

    • getObjectNumber

      PDFObjectNumber getObjectNumber()
      Returns the object number of this indirect object. Note that a compressed object must have a generation number of 0.
      Returns:
      the object number.
    • output

      int output(OutputStream outputStream) throws IOException
      Outputs this object's content into the given stream.
      Parameters:
      outputStream - a stream, likely to be provided by the containing object stream
      Returns:
      the number of bytes written to the stream
      Throws:
      IOException