com.lowagie.text.pdf
public class PRStream extends PdfStream
Field Summary | |
---|---|
protected int | length |
protected int | objGen |
protected int | objNum |
protected int | offset |
protected PdfReader | reader |
Constructor Summary | |
---|---|
PRStream(PRStream stream, PdfDictionary newDic) | |
PRStream(PRStream stream, PdfDictionary newDic, PdfReader reader) | |
PRStream(PdfReader reader, int offset) | |
PRStream(PdfReader reader, byte[] conts) | |
PRStream(PdfReader reader, byte[] conts, int compressionLevel)
Creates a new PDF stream object that will replace a stream
in a existing PDF file. |
Method Summary | |
---|---|
byte[] | getBytes() |
int | getLength() |
int | getObjGen() |
int | getObjNum() |
int | getOffset() |
PdfReader | getReader() |
void | setData(byte[] data, boolean compress)
Sets the data associated with the stream, either compressed or
uncompressed. |
void | setData(byte[] data, boolean compress, int compressionLevel)
Sets the data associated with the stream, either compressed or
uncompressed. |
void | setData(byte[] data) Sets the data associated with the stream |
void | setLength(int length) |
void | setObjNum(int objNum, int objGen) |
void | toPdf(PdfWriter writer, OutputStream os) |
Parameters: reader the reader that holds the existing PDF conts the new content compressionLevel the compression level for the content
Since: 2.1.3 (replacing the existing constructor without param compressionLevel)
Parameters: data raw data, decrypted and uncompressed. compress true if you want the stream to be compressed.
Since: iText 2.1.1
Parameters: data raw data, decrypted and uncompressed. compress true if you want the stream to be compressed. compressionLevel a value between -1 and 9 (ignored if compress == false)
Since: iText 2.1.3
Parameters: data raw data, decrypted and uncompressed.