Class FreeXReference

    • Field Detail

      • nextFreeObject

        private final long nextFreeObject
    • Constructor Detail

      • FreeXReference

        public FreeXReference​(COSObjectKey key,
                              long nextFreeObject)
        Sets the given COSObjectKey as a free reference in a PDF's crossreference stream (PDFXRefStream).
        Parameters:
        key - The key, that shall be set as the free reference of the document.
        nextFreeObject - The object number of the next free object.
    • Method Detail

      • getReferencedKey

        public COSObjectKey getReferencedKey()
        Returns the COSObjectKey of the object, that is described by this crossreference stream entry.
        Returns:
        The COSObjectKey of the object, that is described by this crossreference stream entry.
      • getSecondColumnValue

        public long getSecondColumnValue()
        Returns the value for the second column of the crossreference stream entry. (This is the object number of the set next free COSObjectKey - for entries of this type.)
        Returns:
        The value for the second column of the crossreference stream entry.
      • getThirdColumnValue

        public long getThirdColumnValue()
        Returns the value for the third column of the crossreference stream entry. (This is the generation number of the set next free COSObjectKey - for entries of this type.)
        Returns:
        The value for the third column of the crossreference stream entry.
      • toString

        public java.lang.String toString()
        Returns a string representation of this crossreference stream entry.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of this crossreference stream entry.