Package org.openpdf.text.pdf
Class PdfIndirectObject
java.lang.Object
org.openpdf.text.pdf.PdfIndirectObject
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.7' section 3.2.9 (page 63-65).
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPdfIndirectObject(int number, int generation, PdfObject object, PdfWriter writer) Constructs aPdfIndirectObject.PdfIndirectObject(int number, PdfObject object, PdfWriter writer) Constructs aPdfIndirectObject.PdfIndirectObject(PdfIndirectReference ref, PdfObject object, PdfWriter writer) -
Method Summary
Modifier and TypeMethodDescriptionReturns aPdfIndirectReferenceto thisPdfIndirectObject.(package private) voidwriteTo(OutputStream os) Writes efficiently to a stream
-
Field Details
-
Constructor Details
-
PdfIndirectObject
Constructs aPdfIndirectObject.- Parameters:
number- the object numberobject- the direct object
-
PdfIndirectObject
PdfIndirectObject(PdfIndirectReference ref, PdfObject object, PdfWriter writer) -
PdfIndirectObject
Constructs aPdfIndirectObject.- Parameters:
number- the object numbergeneration- the generation numberobject- the direct object
-
-
Method Details
-
getIndirectReference
Returns aPdfIndirectReferenceto thisPdfIndirectObject.- Returns:
- a
PdfIndirectReference
-
writeTo
Writes efficiently to a stream- Parameters:
os- the stream to write to- Throws:
IOException- on write error
-