com.lowagie.text.pdf

Class PdfWriter.PdfBody.PdfCrossReference

static class PdfWriter.PdfBody.PdfCrossReference extends Object implements Comparable

PdfCrossReference is an entry in the PDF Cross-Reference table.
Field Summary
intgeneration
generation of the object.
intoffset
Byte offset in the PDF file.
intrefnum
inttype
Constructor Summary
PdfCrossReference(int refnum, int offset, int generation)
Constructs a cross-reference element for a PdfIndirectObject.
PdfCrossReference(int refnum, int offset)
Constructs a cross-reference element for a PdfIndirectObject.
PdfCrossReference(int type, int refnum, int offset, int generation)
Method Summary
intcompareTo(Object o)
booleanequals(Object obj)
intgetRefnum()
inthashCode()
voidtoPdf(OutputStream os)
Returns the PDF representation of this PdfObject.
voidtoPdf(int midSize, OutputStream os)
Writes PDF syntax to the OutputStream

Field Detail

generation

private int generation
generation of the object.

offset

private int offset
Byte offset in the PDF file.

refnum

private int refnum

type

private int type

Constructor Detail

PdfCrossReference

PdfCrossReference(int refnum, int offset, int generation)
Constructs a cross-reference element for a PdfIndirectObject.

Parameters: refnum offset byte offset of the object generation 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 Detail

compareTo

public int compareTo(Object o)

See Also: java.lang.Comparable#compareTo(java.lang.Object)

equals

public boolean equals(Object obj)

See Also: java.lang.Object#equals(java.lang.Object)

getRefnum

int getRefnum()

hashCode

public int hashCode()

See Also: java.lang.Object#hashCode()

toPdf

public void toPdf(OutputStream os)
Returns the PDF representation of this PdfObject.

Parameters: os

Throws: IOException

toPdf

public void toPdf(int midSize, OutputStream os)
Writes PDF syntax to the OutputStream

Parameters: midSize os

Throws: IOException