Skip to end of metadata
Go to start of metadata
Contents Summary

This article shows how to merge multiple PDF files into a single PDF document using Aspose.PDF for .NET. The example is written in C# but the API can be used in other .NET programming languages as well such as VB.NET. PDF files are merged such that the first one is joined at the end of the other document. 

Merge PDF Files using C#


Try online

You can merge PDF files using Aspose.PDF and get the results online at this link:

To concatenate two PDF files:

  1. Create two Document objects, each containing one of the input PDF files.
  2. Then call the PageCollection collection's Add method for the Document object you want to add the other PDF file to.
  3. Pass the PageCollection collection of the second Document object to the first PageCollection collection's Add method.
  4. Finally, save the output PDF file using the Save method.

The following code snippet shows how to concatenate PDF files.

  • No labels