Merge PDF in C#
Combine PDF files with a cross-platform .NET API.
Merge PDF to PDF using Aspose.Slides
Aspose.Slides for .NET lets you create, convert, merge, and manipulate presentations, PDFs, and other documents. You can import pages from several PDF files into one presentation and save the result as a single PDF file.
Merge PDF to PDF in C#
Using
Aspose.Slides for .NET
, you can load PDF files with Slides.AddFromPdf and save the result with SaveFormat.Pdf.
C# code for merging PDF to PDF
using var presentation = new Presentation();
presentation.Slides.RemoveAt(0);
presentation.Slides.AddFromPdf("first.pdf");
presentation.Slides.AddFromPdf("second.pdf");
presentation.Save("merged.pdf", SaveFormat.Pdf);
How to merge PDF in C#
Install Aspose.Slides for .NET. See Installation .
Add the library as a reference in your project.
Create a
Presentationobject.Load the PDF files with
Slides.AddFromPdf.Save the merged file with
SaveFormat.Pdf.
Merge PDF Files Online
Combine files online with Aspose.Slides Merger.
Merge other files
You can also combine files in other formats to get a single file