com.lowagie.text.pdf
public class PdfIndirectObject extends Object
PdfIndirectObject
is the Pdf indirect object.
An indirect object is an object that has been labeled so that it can be referenced by
other objects. Any type of PdfObject
may be labeled as an indirect object.
An indirect object consists of an object identifier, a direct object, and the endobj
keyword. The object identifier consists of an integer object number, an integer
generation number, and the obj keyword.
This object is described in the 'Portable Document Format Reference Manual version 1.3'
section 4.10 (page 53).
See Also: PdfObject PdfIndirectReference
Field Summary | |
---|---|
static byte[] | ENDOBJ |
protected int | generation the generation number |
protected int | number The object number |
PdfObject | object |
static int | SIZEOBJ |
static byte[] | STARTOBJ |
PdfWriter | writer |
Constructor Summary | |
---|---|
PdfIndirectObject(int number, PdfObject object, PdfWriter writer)
Constructs a PdfIndirectObject .
| |
PdfIndirectObject(PdfIndirectReference ref, PdfObject object, PdfWriter writer) | |
PdfIndirectObject(int number, int generation, PdfObject object, PdfWriter writer)
Constructs a PdfIndirectObject .
|
Method Summary | |
---|---|
PdfIndirectReference | getIndirectReference()
Returns a PdfIndirectReference to this PdfIndirectObject .
|
void | writeTo(OutputStream os)
Writes eficiently to a stream
|
PdfIndirectObject
.
Parameters: number the object number object the direct object
PdfIndirectObject
.
Parameters: number the object number generation the generation number object the direct object
PdfIndirectReference
to this PdfIndirectObject
.
Returns: a PdfIndirectReference
Parameters: os the stream to write to
Throws: IOException on write error