My Account |  Site Map | Contact Us  

Pdf API for .NET: Merge Multiple PDF Files

All Products
EO.Web Controls
EO.Pdf for .NET
HTML to PDF (Url)
HTML to PDF (HTML Markup)
PDF Creator API
PDF Reader API
PDF Page Extraction API
PDF Splitting API
PDF Merging API
PDF Encryption API
PDF Signing API
API to Fill Form Fields
EO.Wpf for .NET
EO.WebBrowser for .NET

PDF Merging API allows you to merge multiple PDF files into a single PDF file.

Use it in your Application

//Load two or more existing PDF files
PdfDocument doc1 = new PdfDocument(pdfFileName1);
PdfDocument doc2 = new PdfDocument(pdfFileName1);

//Merge them into a single PDF file
PdfDocument mergedDoc = PdfDocument.Merge(doc1, doc2);

//Now you can do anything with the merged PDF file such
//as modifying, saving, merging, cloning, etc.

This feature is useful when you need to assembly a final PDF file from multiple sources. For example, you may wish to generate the main content of the PDF file from a HTML file, but also need to add a fixed cover page to all the final PDF files. In this case you can use the HTML to PDF converter to convert the main content, then use the PDF merger to merge the cover PDF page with the main content file to produce the final file.

Detailed documentation and sample code about this feature can be found in the download package.

Additional Resources

  • Product Documentation

    All features are explained in great details in the product documentation. It also contains complete reference information for each type, property or method;

  • Samples

    The download package contains a wide variety of samples with full C# and Visual Basic.NET source code that demonstrate how to use different feature of the EO.Pdf library.

  • Technical Support

    Still have questions? Post in our support forum or contact us and we will answer them quickly. Our turn around time is among the best in the industry.