Class PdfWriter.PdfBody.PdfCrossReference

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int generation
      generation of the object.
      private long offset
      Byte offset in the PDF file.
      private int refnum  
      private int type  
    • Constructor Summary

      Constructors 
      Constructor Description
      PdfCrossReference​(int type, int refnum, long offset, int generation)  
      PdfCrossReference​(int refnum, long offset)
      Constructs a cross-reference element for a PdfIndirectObject.
      PdfCrossReference​(int refnum, long offset, int generation)
      Constructs a cross-reference element for a PdfIndirectObject.
    • Field Detail

      • type

        private final int type
      • offset

        private final long offset
        Byte offset in the PDF file.
      • refnum

        private final int refnum
      • generation

        private final int generation
        generation of the object.
    • Constructor Detail

      • PdfCrossReference

        public PdfCrossReference​(int refnum,
                                 long offset,
                                 int generation)
        Constructs a cross-reference element for a PdfIndirectObject.
        Parameters:
        refnum -
        offset - byte offset of the object
        generation - generation number of the object
      • PdfCrossReference

        public PdfCrossReference​(int refnum,
                                 long offset)
        Constructs a cross-reference element for a PdfIndirectObject.
        Parameters:
        refnum -
        offset - byte offset of the object
      • PdfCrossReference

        public PdfCrossReference​(int type,
                                 int refnum,
                                 long offset,
                                 int generation)
    • Method Detail

      • getRefnum

        public int getRefnum()
      • toPdf

        public void toPdf​(java.io.OutputStream os)
                   throws java.io.IOException
        Returns the PDF representation of this PdfObject.
        Parameters:
        os -
        Throws:
        java.io.IOException
      • toPdf

        public void toPdf​(int midSize,
                          java.io.OutputStream os)
                   throws java.io.IOException
        Writes PDF syntax to the OutputStream
        Parameters:
        midSize -
        os -
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()