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
Check the Merge PDF documents in C# and VB.NET article for examples of using this method.
Call one of the Save methods to store the resulting document in a file or a stream.
This method uses default merging options.
The resulting document can contain copies of the same fonts or images. Check the Compress PDF documents in C# and VB.NET article to see how to optimize the combined document.
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
Check the Merge PDF documents in C# and VB.NET article for examples of using this method.
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.
The resulting document can contain copies of the same fonts or images. Check the Compress PDF documents in C# and VB.NET article to see how to optimize the combined document.
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
Check the Merge PDF documents in C# and VB.NET article for examples of using this method.
Call one of the Save methods to store the resulting document in a file or a stream.
This method uses default merging options.
The resulting document can contain copies of the same fonts or images. Check the Compress PDF documents in C# and VB.NET article to see how to optimize the combined document.
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
Check the Merge PDF documents in C# and VB.NET article for examples of using this method.
For more information about decryption handlers, check the Decrypt PDF documents in C# and VB.NET article.
Call one of the Save methods to store the resulting document in a file or a stream.
This method uses default merging options.
The resulting document can contain copies of the same fonts or images. Check the Compress PDF documents in C# and VB.NET article to see how to optimize the combined document.
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
Check the Merge PDF documents in C# and VB.NET article for examples of using this method.
For more information about decryption handlers, check the Decrypt PDF documents in C# and VB.NET article.
Call one of the Save methods to store the resulting document in a file or a stream.
The resulting document can contain copies of the same fonts or images. Check the Compress PDF documents in C# and VB.NET article to see how to optimize the combined document.
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
Check the Merge PDF documents in C# and VB.NET article for examples of using this method.
For more information about decryption handlers, check the Decrypt PDF documents in C# and VB.NET article.
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.
The resulting document can contain copies of the same fonts or images. Check the Compress PDF documents in C# and VB.NET article to see how to optimize the combined document.
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
Check the Merge PDF documents in C# and VB.NET article for examples of using this method.
For more information about decryption handlers, check the Decrypt PDF documents in C# and VB.NET article.
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.
The resulting document can contain copies of the same fonts or images. Check the Compress PDF documents in C# and VB.NET article to see how to optimize the combined document.