Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

Organize PDF pages

Merge PDF files locally

Merge two to ten PDF files in your selected order, keep the source files unchanged, and download a separate PDF with page and policy evidence.

Merge summary
Input
Two to ten PDFs
Output
Merged PDF
Runs on
Browser-local WebAssembly or .NET
Microsoft Office
Not required
License
MIT

The browser accepts two to ten PDFs, up to 25 MiB each and 75 MiB combined.

Browse all PDF workflows

Practical steps

Merge PDF files in a controlled order

Combine complete documents through one first-party merge pass and retain the operation report.

  1. SelectChoose between two and ten PDF files.
  2. OrderArrange the files in the sequence that should appear in the output.
  3. MergeCreate and download the merged PDF and its JSON operation report.

The merge workflow copies complete page trees into a new document. The browser presents the selected order explicitly and returns output page count and policy decisions with the artifact.

Merge from .NET

using OfficeIMO.Pdf;

PdfDocument first = PdfDocument.Load("cover.pdf");
PdfDocument second = PdfDocument.Load("report.pdf");

PdfMergeResult result = PdfDocument.MergeResult(
    new PdfMergeOptions(),
    first,
    second);

File.WriteAllBytes("combined.pdf", result.ToBytes());
Console.WriteLine($"Pages: {result.Report.OutputPageCount}");

PdfMergeOptions controls how the application handles incoming metadata, destinations, forms, attachments, encryption, and signature-related evidence. Keep the report when those choices affect compliance or downstream review.

Boundaries

The browser route does not modify any selected file. It creates one new PDF and a companion report. Encrypted inputs still require a supported authentication context, and merging a signed document creates a new revision-independent artifact rather than extending or preserving the original signature guarantee.

Example source

Download source