Merge Documents into PDF

Merge Documents into PDF in C#

GroupDocs.Merger for .NET (which is a part of Conholdate.Total for .NET) allows to merge multiple files (even different types of files such as DOCPPTXLS) into a single PDF file. Use Join method to combine multiple PDF files. This cross-format merge to PDF / XPS could be useful for the cases when there is no ability to merge only PDF files. For now, the API allows to join other file types without password with the PDF document loaded into Merger object.

The following example demonstrates how to merge PDF file with DOCPPT and XLS file types:

using (Merger merger = new Merger(@"c:\document1.pdf"))
{
    merger.Join(@"c:\document2.doc");
    merger.Join(@"c:\document3.ppt");
    merger.Join(@"c:\document4.xls");
 
	merger.Save(@"c:\merged.pdf");
}