public class PdfEFStream extends PdfStream
BEST_COMPRESSION, BEST_SPEED, compressed, compressionLevel, DEFAULT_COMPRESSION, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, ref, streamBytes, writer
Constructor and Description |
---|
PdfEFStream(byte[] fileStore)
Creates a Stream object using a byte array
|
PdfEFStream(InputStream in, PdfWriter writer)
Creates a Stream object using an InputStream and a PdfWriter object
|
Modifier and Type | Method and Description |
---|---|
void |
toPdf(PdfWriter writer, OutputStream os)
Writes the PDF representation of this PdfDictionary as an array of byte to the given OutputStream .
|
flateCompress, flateCompress, getRawLength, superToPdf, toString, writeContent, writeLength
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
public PdfEFStream(InputStream in, PdfWriter writer)
in
- the InputStream that will be read to get the Stream object
writer
- the writer to which the stream will be added
public PdfEFStream(byte[] fileStore)
fileStore
- the bytes for the stream
public void toPdf(PdfWriter writer, OutputStream os) throws IOException
PdfDictionary
PdfDictionary
as an array of byte
to the given OutputStream
.
toPdf
in class PdfStream
writer
- for backwards compatibility
os
- the OutputStream
to write the bytes to.
IOException
PdfDictionary.toPdf(com.itextpdf.text.pdf.PdfWriter, java.io.OutputStream)
Copyright © 1998–2019. All rights reserved.