public class NormalXReference
extends org.apache.pdfbox.pdfparser.xref.AbstractXReference
PDFXRefStream
).Constructor and Description |
---|
NormalXReference(long byteOffset,
org.apache.pdfbox.cos.COSObjectKey key,
org.apache.pdfbox.cos.COSBase object)
Prepares a normal reference for the given
COSObject in a PDF's crossreference stream
(PDFXRefStream ). |
Modifier and Type | Method and Description |
---|---|
long |
getByteOffset()
Returns the byte offset of the
COSObject in the PDF file. |
org.apache.pdfbox.cos.COSBase |
getObject()
Returns the
COSObject , that is described by this crossreference stream entry. |
org.apache.pdfbox.cos.COSObjectKey |
getReferencedKey()
Returns the
COSObjectKey of the object, that is described by this crossreference stream entry. |
long |
getSecondColumnValue()
Returns the value for the second column of the crossreference stream entry.
|
long |
getThirdColumnValue()
Returns the value for the third column of the crossreference stream entry.
|
boolean |
isObjectStream()
Returns true, if the referenced object is an object stream.
|
void |
setOffset(long byteOffset) |
String |
toString()
Returns a string representation of this crossreference stream entry.
|
public NormalXReference(long byteOffset, org.apache.pdfbox.cos.COSObjectKey key, org.apache.pdfbox.cos.COSBase object)
COSObject
in a PDF's crossreference stream
(PDFXRefStream
).byteOffset
- The byte offset of the COSObject
in the PDF file.key
- The COSObjectKey
, that is represented by this entry.object
- The COSObject
, that is represented by this entry.public void setOffset(long byteOffset)
public long getByteOffset()
COSObject
in the PDF file.COSObject
in the PDF file.public org.apache.pdfbox.cos.COSObjectKey getReferencedKey()
COSObjectKey
of the object, that is described by this crossreference stream entry.COSObjectKey
of the object, that is described by this crossreference stream entry.public org.apache.pdfbox.cos.COSBase getObject()
COSObject
, that is described by this crossreference stream entry.COSObject
, that is described by this crossreference stream entry.public boolean isObjectStream()
public long getSecondColumnValue()
COSObject
in the PDF file - for entries of this type.)public long getThirdColumnValue()
COSObjectKey
- for entries of this type.)Copyright © 2025. All rights reserved.