PdfDocument.Append Method (Stream, PdfDecryptionHandler, PdfMergingOptions)

Docotic.Pdf library help > BitMiracle.Docotic.Pdf > PdfDocument Class > PdfDocument Methods > Append Method > Append Method (Stream, PdfDecryptionHandler, PdfMergingOptions)
Appends the contents of the specified stream with PDF data to this PdfDocument.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void Append(
	Stream stream,
	PdfDecryptionHandler handler,
	PdfMergingOptions options
)
VB
Public Sub Append ( 
	stream As Stream,
	handler As PdfDecryptionHandler,
	options As PdfMergingOptions
)

Parameters

stream
Type: System.IO.Stream
The stream to read PDF data from.
handler
Type: BitMiracle.Docotic.Pdf.PdfDecryptionHandler
The decryption handler to use to decrypt the stream.
options
Type: BitMiracle.Docotic.Pdf.PdfMergingOptions
The merging options.

Remarks

The stream must be a stream that supports reading and seeking. Otherwise, the method throws an exception of PdfException type.

Call one of the Save() methods to store the resulting document in a file or a stream.

See Also