Class PdfWriter.PdfBody.PdfCrossReference
java.lang.Object
com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfWriter.PdfBody.PdfCrossReference
- All Implemented Interfaces:
Comparable
- Enclosing class:
PdfWriter.PdfBody
PdfCrossReference is an entry in the PDF Cross-Reference table.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intgeneration of the object.private intByte offset in the PDF file.private intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionPdfCrossReference(int refnum, int offset) Constructs a cross-reference element for a PdfIndirectObject.PdfCrossReference(int refnum, int offset, int generation) Constructs a cross-reference element for a PdfIndirectObject.PdfCrossReference(int type, int refnum, int offset, int generation) -
Method Summary
Modifier and TypeMethodDescriptionintboolean(package private) intvoidtoPdf(int midSize, OutputStream os) Writes PDF syntax to the OutputStreamvoidtoPdf(OutputStream os) Returns the PDF representation of thisPdfObject.
-
Field Details
-
type
private int type -
offset
private int offsetByte offset in the PDF file. -
refnum
private int refnum -
generation
private int generationgeneration of the object.
-
-
Constructor Details
-
PdfCrossReference
PdfCrossReference(int refnum, int offset, int generation) Constructs a cross-reference element for a PdfIndirectObject.- Parameters:
refnum-offset- byte offset of the objectgeneration- generationnumber of the object
-
PdfCrossReference
PdfCrossReference(int refnum, int offset) Constructs a cross-reference element for a PdfIndirectObject.- Parameters:
refnum-offset- byte offset of the object
-
PdfCrossReference
PdfCrossReference(int type, int refnum, int offset, int generation)
-
-
Method Details
-
getRefnum
int getRefnum() -
toPdf
Returns the PDF representation of thisPdfObject.- Parameters:
os-- Throws:
IOException
-
toPdf
Writes PDF syntax to the OutputStream- Parameters:
midSize-os-- Throws:
IOException
-
compareTo
- Specified by:
compareToin interfaceComparable- See Also:
-
equals
-