---
title: "Merging PDFs | Nutrient .NET SDK"
canonical_url: "https://www.nutrient.io/guides/dotnet/csharp/editor/merge-pdf-into-other-pdf/"
md_url: "https://www.nutrient.io/guides/dotnet/csharp/editor/merge-pdf-into-other-pdf.md"
last_updated: "2026-10-08T00:00:00.000Z"
description: "Merging PDFs using Nutrient .NET SDK."
---

# Merging PDFs

Merging PDFs combines multiple source documents into one deliverable — contract packets, report bundles, or archives assembled from separate files. The SDK appends whole documents through its editing pipeline, so the sources keep their content, layout, and interactive elements.

Use programmatic merging to:

- Assemble contract or proposal packets from reusable parts.

- Bundle related reports into one distributable file.

- Consolidate scanned batches into a single archive.

## Merge documents with the.NET SDK

Open the base document (a Word file here — the SDK converts Office formats transparently), append the second document through a `PdfEditor`, and export the merged result:

```csharp

using Nutrient;

try
{
    using Document document = Document.Open("input.docx");
    using PdfEditor editor = PdfEditor.Edit(document);

```

## Append the second document

Any open `Document` can be appended — its pages land after the base document's:

```csharp

    using Document document2 = Document.Open("input.pdf");
    editor.AppendDocument(document2);

```

## Save and export the merged result

Apply the edit, then export the combined document to PDF:

```csharp

    editor.Save();
    document.ExportAsPdf("output.pdf");
    Console.WriteLine("Successfully merged documents");
}
catch (NutrientException e)
{
    Console.Error.WriteLine($"Error: {e.Message}");
    Environment.Exit(1);
}

```

## Handle errors

Nutrient.NET SDK uses exception handling for errors. The methods in this guide throw a `NutrientException` if a failure occurs. The `using` statements release the editor and both documents even when a step fails.

## Conclusion

You've merged two documents — one of them converted from Word on the fly — into a single PDF.

---

## Related pages

- [Nutrient .NET SDK editor guides](/guides/dotnet/csharp/editor.md)
- [Adding annotations to a PDF document](/guides/dotnet/csharp/editor/add-annotations-to-pdf.md)
- [Adding a custom page to a PDF document](/guides/dotnet/csharp/editor/add-custom-page-to-pdf.md)
- [Adding interactive form fields to a PDF document](/guides/dotnet/csharp/editor/add-form-fields-to-pdf.md)
- [Adding free text annotations to a PDF document](/guides/dotnet/csharp/editor/add-freetext-annotations-to-pdf.md)
- [Adding invisible digital signatures to a PDF document](/guides/dotnet/csharp/editor/add-invisible-signature-to-pdf.md)
- [Adding link annotations to a PDF document](/guides/dotnet/csharp/editor/add-link-annotations-to-pdf.md)
- [Adding redaction annotations to a PDF document](/guides/dotnet/csharp/editor/add-redaction-annotations-to-pdf.md)
- [Adding shape annotations to a PDF document](/guides/dotnet/csharp/editor/add-shape-annotations-to-pdf.md)
- [Adding stamp annotations to a PDF document](/guides/dotnet/csharp/editor/add-stamp-annotations-to-pdf.md)
- [Adding sticky note annotations to a PDF document](/guides/dotnet/csharp/editor/add-sticky-note-annotations-to-pdf.md)
- [Adding text markup annotations to a PDF document](/guides/dotnet/csharp/editor/add-text-markup-annotations-to-pdf.md)
- [Adding visible digital signatures to a PDF document](/guides/dotnet/csharp/editor/add-visible-signature-to-pdf.md)
- [Advanced digital signature workflows](/guides/dotnet/csharp/editor/advanced-digital-signatures.md)
- [Detecting and adding form fields to a PDF document](/guides/dotnet/csharp/editor/detect-and-add-form-fields.md)
- [Editing PDF form fields](/guides/dotnet/csharp/editor/editing-pdf-form-fields.md)
- [Editing PDF metadata with Nutrient .NET SDK](/guides/dotnet/csharp/editor/editing-pdf-metadata.md)
- [Filling PDF form fields](/guides/dotnet/csharp/editor/fill-pdf-form.md)
- [Managing PDF page order](/guides/dotnet/csharp/editor/manage-pdf-page-order.md)

