GroupDocs.Merger for Python via .NET provides a comprehensive set of document manipulation features across 70+ supported formats — Microsoft Office, PDF, OpenDocument, images, Visio diagrams, eBooks, archives, and more. It runs entirely on-premise, requires no third-party office applications, and ships as a pre-built wheel on Windows, Linux, and macOS.
The core capability is combining multiple documents into one. You can merge entire documents or select specific pages or page ranges from each source document. Format-specific join options let you control how the documents are stitched together — for example, continuous section breaks for Word documents or bookmark preservation for PDFs.
Split a document into a collection of smaller documents. You can emit one file per listed page, split by interval (every N pages), or split a plain-text file by line numbers.
Read metadata from a document without modifying it — file type, page count, page dimensions, visibility flags, and file size. Enumerate all formats supported at runtime via FileType.get_supported_file_types().
Embed a whole file into another document: as an OLE object in a Word processing document, a spreadsheet, a presentation or a Visio diagram, or as an attachment of a PDF document. See Import Documents.
Page Preview
Generate raster image previews (PNG, JPEG, or BMP) of individual document pages. Previews are useful for displaying document thumbnails in a UI, validating page content before merging, or feeding page images into a vision model.
See Page Preview for a runnable example using the file-stream callback pattern.
Loading Documents
GroupDocs.Merger accepts documents from local disk, binary streams (file handles, in-memory buffers), and password-protected files via LoadOptions.
Control external resources: they are denied by default, and you can allow trusted locations or decide per resource — see Skip Loading of External Resources.
Command Line
The package installs a groupdocs-merger command that merges documents, splits them, and extracts or removes pages without a Python script, for example groupdocs-merger merge north-pier-report.pdf cold-store-audit.pdf -o north-pier.pdf. See Command Line Interface for every subcommand and option.
AI / LLM Integration
GroupDocs.Merger is designed to be a first-class building block for AI document pipelines. The groupdocs-merger-net pip package ships an AGENTS.md file inside the wheel so AI coding assistants can discover the API surface automatically, and GroupDocs runs a public MCP server for on-demand documentation lookups.
See Agents and LLM Integration for the full story — including a runnable pipeline that merges PDFs and extracts a page subset for downstream AI processing.
On-Premise Deployment
No cloud calls, no outbound network traffic, no Microsoft Office or Adobe Acrobat installation required. The wheel is self-contained on Windows and ships its own native runtime libraries on Linux and macOS. On Linux the engine needs ICU, and fontconfig for presentations: see System Requirements for every package and what it is for.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.