GroupDocs.Merger.CrossPlatform 24.12.0

dotnet add package GroupDocs.Merger.CrossPlatform --version 24.12.0                
NuGet\Install-Package GroupDocs.Merger.CrossPlatform -Version 24.12.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GroupDocs.Merger.CrossPlatform" Version="24.12.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GroupDocs.Merger.CrossPlatform --version 24.12.0                
#r "nuget: GroupDocs.Merger.CrossPlatform, 24.12.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install GroupDocs.Merger.CrossPlatform as a Cake Addin
#addin nuget:?package=GroupDocs.Merger.CrossPlatform&version=24.12.0

// Install GroupDocs.Merger.CrossPlatform as a Cake Tool
#tool nuget:?package=GroupDocs.Merger.CrossPlatform&version=24.12.0                

Document Merger .NET API

Package version Package downloads .NET

banner


Docs Reference Examples Blog Releases Support License


This GroupDocs.Merger for .NET on-premise API lets your apps perform merging, splitting, swapping and lots of other operations on document pages of various file formats.

Content


Top

Document Merging and Splitting

Merge Multiple File Types

Effortlessly merge files across different formats like PDF, DOCX, XLSX, PPTX, and EPUB into one cohesive document, simplifying document management.

Custom Document Splitting

Easily split documents into multiple files based on specified page numbers, start/end ranges, or even/odd page settings, allowing for tailored document management.

Merge DOCX Files

Allows developers to merge Word documents such as DOCX without third-party software, preserving all content.

Top

Document Security and Protection

Robust Password Management

Secure your documents by adding, removing, or updating passwords seamlessly, ensuring sensitive data remains protected.

Remove Password Protection

Effortlessly remove passwords from protected documents, simplifying access for authorized users while maintaining document integrity.

Comprehensive Document Security

Manage and protect your documents with features designed to add, update, or remove security settings, ensuring that your content remains secure at all times.

Top

Page-Level Manipulation

Precise Page Rotation

Rotate pages within your document to 90, 180, or 270 degrees, ensuring that every page is presented exactly as needed.

Page Removal and Extraction

Remove unwanted pages or extract specific pages from your document, streamlining content to meet specific needs and reducing unnecessary bulk.

Top

Cross-Format Merging and Embedding

Merge documents to PDF

Combine and merge documents to PDF even different types of files such as DOCX, PPTX, or XLSX, etc.

Cross-format merging to DOC/DOCX

Merge documents to DOC/DOCX, i.e. multiple documents of various file types such as PDF, DOC or DOCX into a single DOC or DOCX document.

Merge images to PDF

GroupDocs.Merger for .NET allows developers to merge images to PDF or combine multiple image documents in the preferred order and save them as a single PDF file.

OLE Document Embedding

Embed documents within other documents (e.g., Word, Excel, PDF into PowerPoint or Diagram) using OLE technology, enhancing presentations and diagrams with rich, integrated content.

Top

Platform Independence and Performance

Cross-Platform Flexibility

Deploy GroupDocs.Merger across multiple operating systems (Windows, Linux, Mac OS) and develop applications in .NET environments like ASP.NET, WCF, and WinForms, ensuring broad compatibility.

Optimized for High Performance

Handle thousands of files efficiently with a solution designed for high performance, tested to ensure minimal resource usage and maximum processing speed.

No External Dependencies

Operate independently of third-party software like Microsoft Office, reducing costs and simplifying deployment with a fully self-contained document processing solution.

GroupDocs.Merger for .NET does not require any external software or third-party tool to be installed. GroupDocs.Merger for .NET supports any 32-bit or 64-bit operating system where .NET or Mono framework is installed. The other details are as follows:

External Dependencies GroupDocs.Merger for .NET does not require any external software or third-party tool to be installed.
Operating System Support GroupDocs.Merger for .NET supports any 32-bit or 64-bit operating system where .NET or Mono framework is installed.
Microsoft Windows® Microsoft Windows Desktop (x86, x64) (XP & up), Microsoft Windows Server (x86, x64) (2000 & up), Windows Azure
Mac OS Mac OS X
Linux Linux (Ubuntu, OpenSUSE, CentOS and others)
Development Environments Microsoft Visual Studio (2010 & up), Xamarin.Android, Xamarin.IOS, Xamarin.Mac, MonoDevelop 2.4 and later.
Supported Frameworks GroupDocs.Merger for .NET supports .NET and Mono frameworks.

Top

Integration and Support Resources

Extensive Code Samples and Documentation

Access comprehensive code examples and detailed documentation on GitHub, allowing developers to quickly implement and customize features.

Unlimited Technical Support

Benefit from unlimited technical support, with both free and paid options available, ensuring that any issues are resolved quickly and efficiently.

Free Online Tools and Apps

Try out GroupDocs.Merger features with free online apps for document merging, allowing potential users to experience the power and ease of the tool before integrating it into their workflow.

Top

Supported Document Types

GroupDocs.Merger for .NET supports the following file formats: Supported Document Types

Top

Get Started

Are you ready to give GroupDocs.Merger for .NET a try? Simply execute Install-Package GroupDocs.Merger from Package Manager Console in Visual Studio to fetch & reference GroupDocs.Merger assembly in your project. If you already have GroupDocs.Merger for .NET and want to upgrade it, please execute Update-Package GroupDocs.Merger to get the latest version.

Please check the GitHub Repository for other common usage scenarios.

Top

Merging DOCX documents

This example demonstrates how to merge two DOCX documents into a single file using GroupDocs.Merger.

string filePath1 = @"c:\sample1.docx";
string filePath2 = @"c:\sample2.docx";
string filePathOut = @"c:\output\merged.docx";

using (Merger merger = new Merger(filePath1))
{
    merger.Join(filePath2);
    merger.Save(filePathOut);
}

Top

Cross-merging images to PDF

GroupDocs.Merger allows developers to combine multiple image documents in the preferred order and save them as a single PDF file.

// Load the source image file
using (Merger merger = new Merger(@"c:\sample1.jpeg", new LoadOptions(FileType.PDF)))
{
    // Add another image file to merge
    merger.Join(@"c:\sample2.png");
    // Add next image file to merge
    merger.Join(@"c:\sample3.bmp");
    // Merge image files and save PDF result
    merger.Save(@"c:\merged.pdf");
}

Top

Splitting DOCX document

This code shows how to split the document to several one-page documents (by start/end page numbers).

string filePath = @"c:\sample.docx";
string filePathOut = @"c:\output\document_{0}.{1}";

SplitOptions splitOptions = new SplitOptions(filePathOut, 3, 7);

using (Merger merger = new Merger(filePath))
{
   merger.Split(splitOptions);
}

Top

Swapping pages in a PPTX document

This code snippet shows how to swap two pages within a PPTX document, demonstrating the flexibility of GroupDocs.Merger in managing page layouts.

string filePath = @"c:\sample.pptx";
string filePathOut = @"c:\output\result.pptx";

int pageNumber1 = 3;
int pageNumber2 = 6;
SwapOptions swapOptions = new SwapOptions(pageNumber2, pageNumber1);

using (Merger merger = new Merger(filePath))
{
    merger.SwapPages(swapOptions);
    merger.Save(filePathOut);
}

Top

Cross-merging various document streams to PDF

There may also be situations when it is necessary to combine different types of streams into PDF. In this case, you can use the example below:

string filePath1 = "c:/sample1.docx";
string filePath2 = "c:/sample2.pptx";

MemoryStream memoryStream1 = new MemoryStream();
using (FileStream fileStream1 = File.OpenRead(filePath1))
{
    fileStream1.CopyTo(memoryStream1);
}

MemoryStream memoryStream2 = new MemoryStream();
using (FileStream fileStream2 = File.OpenRead(filePath2))
{
    fileStream2.CopyTo(memoryStream2);
}

// Init Load options with defined FileTypes
LoadOptions loadOptions = new LoadOptions(FileType.DOCX, FileType.PDF);

// Load the source DOCX stream as PDF
using (Merger merger = new Merger(memoryStream1, loadOptions))
{
    // Define join options with PPTX file type
    JoinOptions joinOptions = new JoinOptions(FileType.PPTX);
    // Add another PPTX stream to merge
    merger.Join(memoryStream2, joinOptions);
    // Merge document streams and save PDF result
    merger.Save(@"c:\merged.pdf");
}

Top


Docs Reference Examples Blog Releases Support License


Top

Tags

Merge PDF | Merge DOCX | Merge PPTX | Split PDF | Split DOCX | Split PPTX | Combine PDF | Combine DOCX | Combine PPTX | Join PDF | Join DOCX | Join PPTX | Swap Pages | Add Password | Update Password | Remove Password | JPG to JPEG | DOCX to PDF | Cross Format Merging | OLE Embedding | Extract Pages | Image to PDF | Remove Pages | Rotate Pages | Page Builder

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
24.12.0 616 12/5/2024
24.11.0 506 11/19/2024
24.10.0 520 10/15/2024
24.9.0 655 9/17/2024
24.8.0 764 8/27/2024
24.7.0 487 7/15/2024
24.6.1 1,705 6/25/2024