Document SDK - Merge Documents

Merge Documents Programmatically in .NET Using C#

Try Our Live Demo

Combine multiple documents with a single SDK

Add reliable same-format merging to reports, contracts, records, workbooks, presentations, knowledge bases, and other document-heavy applications, using familiar C# APIs tailored to each document type.

Preserve Document Fidelity image

Preserve document fidelity

Keep the source content and supported formatting that matter to users, including Word styles, PDF annotations, Excel formattings, PowerPoint themes, and Markdown structure.

Control What Gets Merged image

Control exactly what gets merged

Combine complete files or work at a finer level where supported—such as Word sections, PDF page ranges, Excel worksheets, PowerPoint slides, and cloned Markdown content.

Run Without Desktop Office image

Run without desktop Office

Process files inside .NET applications and services without installing Microsoft Word, Excel, or PowerPoint and without relying on Office interop or COM dependencies and libraries.

Merge Word files with formatting

Combine templates, chapters, clauses, and generated sections into a single Word document. Choose how imported content fits the destination so teams can automate document merging without sacrificing the look and structure of the final file.

  • Retain source formatting or apply destination styles.
  • Continue or restart list numbering when content is imported.
  • Merge complete documents, selected sections, or plain text.

Explore Word document merging

Merge Word Documents with Formatting Control.

Merge PDFs with Page-Level Control.

Merge PDFs with page-level control

Consolidate invoices, statements, reports, or uploaded PDFs into one PDF document. Preserve the original appearance and supported interactive or structural elements while giving users control over which pages belong in the result.

  • Merge complete PDFs or selected pages from multiple PDF files efficiently.
  • Retain layout, images, annotations, bookmarks, form fields, and accessibility tags.
  • Optimize unused resources during merging and extend page margins when required.

Explore PDF merging

Combine workbooks into one file

Bring worksheets distributed across departments, exports, or reporting periods into a single workbook. Automate repetitive consolidation workflows and deliver one organized file that is easier to review, distribute, and archive.

  • Save the consolidated result as a standard Excel workbook.
  • Copy worksheets from multiple workbooks into a new workbook.
  • Process files from folders or streams for server-side workflows.

See how to merge Excel files

Combine Excel workbooks into one organized file.

Merge PowerPoints with Theme Control.

Merge PowerPoints with style control

Combine complete presentations or selected slides into a single deck for sales, training, executive reviews, and customer deliverables. Decide whether imported slides keep their original design or adopt the destination theme.

  • Retain the source design or apply the destination presentation’s theme.
  • Merge multiple presentations or clone only the slides you need efficiently.
  • Automate batch workflows, including supported password-protected presentations.

Explore PowerPoint merging

Combine Markdown content

Load, clone, manipulate, and save Markdown content programmatically for release notes, technical portals, generated reports, and content pipelines. Merge reusable content while keeping the result easy to store, transform, and publish.

  • Reuse document content safely across merging and document workflows.
  • Load Markdown from a path, stream, or string and save to a file or stream.
  • Control text encoding and customize image handling during import and save.

Explore the .NET Markdown Library

Clone and merge Markdown files

Frequently Asked Questions

The SDK provides native merge workflows for each document family: Word documents into a Word document, PDFs into a PDF, Excel worksheets into a workbook, PowerPoint slides into a presentation, and Markdown content into Markdown. If a workflow needs one common final format, convert the source documents to a shared format—such as PDF before merging them—as a separate processing step where the relevant library supports it.

You can import complete documents or selected sections, retain source formatting, apply destination styles, merge text only, and choose whether list numbering continues or restarts. Supported output options include Word formats, PDF, HTML, and images.

Yes. Clone selected slides into a destination presentation and choose whether they retain the source design or use the destination theme. Supported merge formats include PPTX, PPTM, POTX, and POTM.

No. Word, Excel, and PowerPoint processing runs programmatically without Microsoft Office or Office interop. This makes the libraries suitable for web applications, APIs, background services, and cloud-hosted workflows.

The PDF Library is designed to retain the original layout and appearance along with supported elements such as text, images, annotations, bookmarks, form fields, and accessibility tags. It can merge entire documents or selected page ranges.

Yes. The APIs work with files and, where supported, streams, allowing you to build upload pipelines, folder-based batch jobs, scheduled document merging, and in-memory processing into .NET applications and services.

Resources

Learn more about our Document SDK

Explore demos, KB articles, and documentation to get the most out of our Document SDK.

Documentation

Explore guides, APIs, and quick-start tips

Example demos

See live use cases in action

Community forum

Ask, share, and connect with peers

Knowledge base articles

Find solutions and best practices fast

Contact support

Get expert help when you need it

Feature requests and bug reports

Track issues and suggest improvements

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.

Up arrow icon
Syncfusion Feedback