public class PRIndirectReference extends PdfIndirectReference
Modifier and Type | Field and Description |
---|---|
protected PdfReader |
reader |
generation, number
Constructor and Description |
---|
PRIndirectReference(PdfReader reader, int number)
Constructs a PdfIndirectReference .
|
PRIndirectReference(PdfReader reader, int number, int generation)
Constructs a PdfIndirectReference .
|
Modifier and Type | Method and Description |
---|---|
PdfReader |
getReader() |
void |
setNumber(int number, int generation) |
void |
toPdf(PdfWriter writer, OutputStream os)
Writes the PDF representation of this PdfObject as an array of byte s to the writer.
|
getGeneration, getNumber, toString
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
protected PdfReader reader
public PRIndirectReference(PdfReader reader, int number, int generation)
PdfIndirectReference
.
reader
- a PdfReader
number
- the object number.
generation
- the generation number.
public PRIndirectReference(PdfReader reader, int number)
PdfIndirectReference
.
reader
- a PdfReader
number
- the object number.
public void toPdf(PdfWriter writer, OutputStream os) throws IOException
PdfObject
PdfObject
as an array of byte
s to the writer.
toPdf
in class PdfIndirectReference
writer
- for backwards compatibility
os
- The OutputStream
to write the bytes to.
IOException
public PdfReader getReader()
public void setNumber(int number, int generation)
Copyright © 1998–2016. All rights reserved.