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
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 objectwriter
- the writer to which the stream will be addedpublic PdfEFStream(byte[] fileStore)
fileStore
- the bytes for the streampublic 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 compatibilityos
- the OutputStream
to write the bytes to.IOException
- on errorPdfDictionary.toPdf(com.lowagie.text.pdf.PdfWriter, java.io.OutputStream)
Copyright © 2020. All rights reserved.