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
stringThe 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
StreamThe 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
stringThe name of the existing PDF file.
handler
PdfDecryptionHandlerThe 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
stringThe name of the existing PDF file.
handler
PdfDecryptionHandlerThe decryption handler to use to decrypt the file.
options
PdfMergingOptionsThe 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
StreamThe stream to read PDF data from.
handler
PdfDecryptionHandlerThe 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
StreamThe stream to read PDF data from.
handler
PdfDecryptionHandlerThe decryption handler to use to decrypt the stream.
options
PdfMergingOptionsThe 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.