public class PRStream extends PdfStream
BEST_COMPRESSION, compressed, compressionLevel, DEFAULT_COMPRESSION, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, streamByteshashMap| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Gets the presentation of this object in a byte array
|
int |
getLength() |
int |
getOffset() |
PdfReader |
getReader() |
void |
setData(byte[] data)
Sets the data associated with the stream
|
void |
setLength(int length) |
void |
toPdf(PdfWriter writer,
OutputStream os)
Writes the PDF representation of this
PdfDictionary as an
array of byte to the given OutputStream. |
getRawLength, superToPdf, toStringget, getAsArray, getAsDict, getAsName, getAsNumber, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, put, remove, sizegetIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, setContent, setIndRef, typepublic void setData(byte[] data)
data - raw data, decrypted and uncompressed.public void setLength(int length)
public int getOffset()
public int getLength()
public PdfReader getReader()
public byte[] getBytes()
PdfObjectpublic void toPdf(PdfWriter writer, OutputStream os) throws IOException
PdfDictionaryPdfDictionary as an
array of byte to the given OutputStream.toPdf in class PdfStreamwriter - for backwards compatibilityos - the OutputStream to write the bytes to.IOException - Exception with a I/O errorPdfDictionary.toPdf(com.aowagie.text.pdf.PdfWriter, java.io.OutputStream)Copyright © 2021. All rights reserved.