Class PRIndirectReference

    • Constructor Detail

      • 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 Detail

      • 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
      • setNumber

        public void setNumber​(int number,
                              int generation)