com.lowagie.text.pdf

Class PdfEFStream

public class PdfEFStream extends PdfStream

Extends PdfStream and should be used to create Streams for Embedded Files (file attachments).

Since: 2.1.3

Constructor Summary
PdfEFStream(InputStream in, PdfWriter writer)
Creates a Stream object using an InputStream and a PdfWriter object
PdfEFStream(byte[] fileStore)
Creates a Stream object using a byte array
Method Summary
voidtoPdf(PdfWriter writer, OutputStream os)

Constructor Detail

PdfEFStream

public PdfEFStream(InputStream in, PdfWriter writer)
Creates a Stream object using an InputStream and a PdfWriter object

Parameters: in the InputStream that will be read to get the Stream object writer the writer to which the stream will be added

PdfEFStream

public PdfEFStream(byte[] fileStore)
Creates a Stream object using a byte array

Parameters: fileStore the bytes for the stream

Method Detail

toPdf

public void toPdf(PdfWriter writer, OutputStream os)

See Also: PdfDictionary