Table of Contents

Method Append

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

Append(string)

Appends the contents of existing PDF file with the specified name to this PdfDocument.

public void Append(string fileName)

Parameters

fileName string

The name of the existing PDF file.

Remarks

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

This method uses default merging options.

Append(Stream)

Appends the contents of specified stream with PDF data to this PdfDocument.

public void Append(Stream stream)

Parameters

stream Stream

The stream to read PDF data from.

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.

This method uses default merging options.

Append(byte[])

Appends the contents of specified buffer with PDF data to this PdfDocument.

public void Append(byte[] buffer)

Parameters

buffer byte[]

The buffer to read PDF data from.

Remarks

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

This method uses default merging options.

Append(string, PdfDecryptionHandler)

Appends the contents of existing PDF file with the specified name to this PdfDocument.

public void Append(string fileName, PdfDecryptionHandler handler)

Parameters

fileName string

The name of the existing PDF file.

handler PdfDecryptionHandler

The decryption handler to use to decrypt the file.

Remarks

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

This method uses default merging options.

Append(string, PdfDecryptionHandler, PdfMergingOptions)

Appends the contents of an existing PDF file with the specified name to this PdfDocument.

public void Append(string fileName, PdfDecryptionHandler handler, PdfMergingOptions options)

Parameters

fileName string

The name of the existing PDF file.

handler PdfDecryptionHandler

The decryption handler to use to decrypt the file.

options PdfMergingOptions

The merging options.

Remarks

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

Append(Stream, PdfDecryptionHandler)

Appends the contents of the specified stream with PDF data to this PdfDocument.

public void Append(Stream stream, PdfDecryptionHandler handler)

Parameters

stream Stream

The stream to read PDF data from.

handler PdfDecryptionHandler

The decryption handler to use to decrypt the stream.

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.

This method uses default merging options.

Append(Stream, PdfDecryptionHandler, PdfMergingOptions)

Appends the contents of the specified stream with PDF data to this PdfDocument.

public void Append(Stream stream, PdfDecryptionHandler handler, PdfMergingOptions options)

Parameters

stream Stream

The stream to read PDF data from.

handler PdfDecryptionHandler

The decryption handler to use to decrypt the stream.

options 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.