This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/dotnet/conversion/merge-to-pdf.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Merge PDF C# .NET: Combine and merge multiple files to PDF | Nutrient .NET SDK

Nutrient .NET SDK combines multiple supported files into one PDF document.

Download sample

Prepare the project

Register the SDK license before running conversion operations. For setup details, refer to the getting started with .NET SDK guide.

using GdPicture14;
LicenseManager license = new LicenseManager();
license.RegisterKEY("");
using GdPictureDocumentConverter converter = new GdPictureDocumentConverter();
IEnumerable<string> sourceFiles = new List<string>
{
"input-1.pdf",
"input-2.pdf"
};
GdPictureStatus status = converter.CombineToPDF(sourceFiles, "output.pdf", PdfConformance.PDF);
if (status != GdPictureStatus.OK)
{
throw new Exception(status.ToString());
}

The input list can contain supported file types, not only PDF files.