Class PRIndirectReference


public class PRIndirectReference extends PdfIndirectReference
  • Field Details

  • Constructor Details

    • PRIndirectReference

      public PRIndirectReference(PdfReader reader, int number, int generation)
      Constructs a PdfIndirectReference.
      Parameters:
      reader - a PdfReader
      number - the object number.
      generation - the generation number.
    • PRIndirectReference

      public PRIndirectReference(PdfReader reader, int number)
      Constructs a PdfIndirectReference.
      Parameters:
      reader - a PdfReader
      number - the object number.
  • Method Details

    • toPdf

      public void toPdf(PdfWriter writer, OutputStream os) throws IOException
      Description copied from class: PdfObject
      Writes the PDF representation of this PdfObject as an array of bytes to the writer.
      Overrides:
      toPdf in class PdfObject
      Parameters:
      writer - for backwards compatibility
      os - The OutputStream to write the bytes to.
      Throws:
      IOException - on error
    • getReader

      public PdfReader getReader()
    • setNumber

      public void setNumber(int number, int generation)