GroupDocs.Merger
24.12.0
dotnet add package GroupDocs.Merger --version 24.12.0
NuGet\Install-Package GroupDocs.Merger -Version 24.12.0
<PackageReference Include="GroupDocs.Merger" Version="24.12.0" />
paket add GroupDocs.Merger --version 24.12.0
#r "nuget: GroupDocs.Merger, 24.12.0"
// Install GroupDocs.Merger as a Cake Addin #addin nuget:?package=GroupDocs.Merger&version=24.12.0 // Install GroupDocs.Merger as a Cake Tool #tool nuget:?package=GroupDocs.Merger&version=24.12.0
Document Merger .NET API
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
- Document Merging and Splitting
- Document Security and Protection
- Page-Level Manipulation
- Cross-Format Merging and Embedding
- Platform Independence and Performance
- Integration and Support Resources
- Supported Document Types
- Get Started
- Merging DOCX Documents
- Cross-merging images to PDF
- Splitting DOCX document
- Swapping Pages in a PPTX Document
- Cross-merging various document streams to PDF
- Tags
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.
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.
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.
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.
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. |
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.
Supported Document Types
GroupDocs.Merger for .NET supports the following file formats: Supported Document Types
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.
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);
}
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");
}
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);
}
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);
}
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");
}
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- No dependencies.
-
.NETStandard 2.1
- Aspose.Drawing (>= 24.2.0)
- Aspose.Drawing.Common (>= 24.2.0)
- Microsoft.Extensions.DependencyModel (>= 2.0.4)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
- Microsoft.Win32.Registry (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.1)
- SkiaSharp (>= 2.88.6)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 2.88.6)
- System.Diagnostics.DiagnosticSource (>= 7.0.0)
- System.Diagnostics.PerformanceCounter (>= 4.5.0)
- System.Drawing.Common (>= 5.0.3)
- System.Reflection.Emit (>= 4.7.0)
- System.Reflection.Emit.ILGeneration (>= 4.3.0)
- System.Security.Cryptography.Pkcs (>= 5.0.1)
- System.Security.Permissions (>= 4.5.0)
- System.Text.Encoding.CodePages (>= 7.0.0)
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 | 897 | 12/5/2024 |
24.11.0 | 947 | 11/19/2024 |
24.10.0 | 3,525 | 10/15/2024 |
24.9.0 | 1,199 | 9/17/2024 |
24.8.0 | 1,836 | 8/27/2024 |
24.7.0 | 4,450 | 7/15/2024 |
24.6.1 | 1,093 | 6/25/2024 |
24.6.0 | 1,593 | 6/3/2024 |
24.4.0 | 27,014 | 4/16/2024 |
24.3.0 | 8,639 | 3/26/2024 |
24.2.0 | 2,149 | 2/26/2024 |
24.1.0 | 3,382 | 1/23/2024 |
23.12.0 | 4,086 | 12/19/2023 |
23.11.0 | 5,760 | 11/22/2023 |
23.10.0 | 7,972 | 10/16/2023 |
23.9.0 | 20,343 | 9/19/2023 |
23.8.0 | 4,810 | 8/17/2023 |
23.5.0 | 6,636 | 5/30/2023 |
23.4.0 | 4,496 | 4/26/2023 |
23.3.1 | 6,356 | 3/16/2023 |
23.3.0 | 2,926 | 3/15/2023 |
22.12.0 | 9,015 | 12/19/2022 |
22.10.0 | 12,939 | 10/24/2022 |
22.7.0 | 16,441 | 7/27/2022 |
22.5.0 | 8,139 | 5/18/2022 |
22.4.0 | 8,622 | 4/25/2022 |
22.1.0 | 22,396 | 1/6/2022 |
21.8.0 | 19,731 | 8/19/2021 |
21.7.0 | 8,181 | 7/27/2021 |
21.6.0 | 7,539 | 6/23/2021 |
21.5.0 | 9,066 | 5/26/2021 |
21.3.0 | 26,053 | 3/29/2021 |
21.2.0 | 22,651 | 2/24/2021 |
20.12.0 | 41,469 | 12/22/2020 |
20.11.0 | 2,099 | 11/24/2020 |
20.10.0 | 22,494 | 10/28/2020 |
20.9.0 | 18,484 | 9/16/2020 |
20.8.0 | 32,043 | 8/20/2020 |
20.7.0 | 18,251 | 7/27/2020 |
20.5.0 | 58,263 | 5/26/2020 |
20.4.0 | 32,517 | 4/22/2020 |
20.2.0 | 61,363 | 2/25/2020 |
20.1.0 | 2,178 | 1/28/2020 |
19.12.0 | 31,814 | 12/20/2019 |
19.11.0 | 30,374 | 11/12/2019 |
19.10.0 | 2,216 | 10/29/2019 |
19.9.0 | 1,487 | 9/26/2019 |
19.7.0 | 2,077 | 7/8/2019 |
19.6.0 | 1,581 | 6/7/2019 |
19.5.0 | 1,394 | 5/24/2019 |
19.4.0 | 1,428 | 4/9/2019 |
19.3.0 | 1,398 | 3/22/2019 |
19.2.0 | 1,381 | 2/25/2019 |
19.1.0 | 1,410 | 1/28/2019 |
18.11.0 | 1,579 | 11/21/2018 |
18.9.0 | 1,767 | 9/4/2018 |
18.7.0 | 1,766 | 7/5/2018 |
18.5.0 | 1,819 | 5/31/2018 |