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 int
generation of the object.private int
Byte offset in the PDF file.private int
private 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 TypeMethodDescriptionint
boolean
(package private) int
void
toPdf
(int midSize, OutputStream os) Writes PDF syntax to the OutputStreamvoid
toPdf
(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:
compareTo
in interfaceComparable
- See Also:
-
equals
-