GroupDocs.Merger
22.4.0
See the version list below for details.
dotnet add package GroupDocs.Merger --version 22.4.0
NuGet\Install-Package GroupDocs.Merger -Version 22.4.0
<PackageReference Include="GroupDocs.Merger" Version="22.4.0" />
paket add GroupDocs.Merger --version 22.4.0
#r "nuget: GroupDocs.Merger, 22.4.0"
// Install GroupDocs.Merger as a Cake Addin #addin nuget:?package=GroupDocs.Merger&version=22.4.0 // Install GroupDocs.Merger as a Cake Tool #tool nuget:?package=GroupDocs.Merger&version=22.4.0
.NET API to Stitch Images JPG, BMP, PNG & Merge Docs
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
This .NET on-premise API lets your apps perform merging, trimming, reordering, swapping and lots of other operations on document pages of various file formats.
Document Merger Processing Features
- Merge two or more documents into a single file.
- Join a specific or group of pages from various files into one document.
- Split a document into several resultant documents.
- Split document by providing specific page numbers.
- Split the document into several multiple-page files by providing various page intervals.
- Specify exact line numbers to create its separate one-liner file.
- Change page position within a document.
- Remove single or multiple pages from the document.
- Remove several pages from a document based on the page number.
- Rotate the page to an angle of 90, 180, or 270 degrees.
- Swap the position of two pages within a document.
- Extract a specific page or a range of pages from the document.
- Change page orientation (portrait, landscape) of specific or all pages within a document.
- Set, update or remove the document password.
- Obtain basic meta-information about the document.
- Generate image representation of the document pages.
- Ability to log document manipulation process information.
- Load document from local disk, stream, or from URL.
What's new in v22.4.0
Stitch JPG, BMP, PNG Images
This API release introduces the support to join images of the JPG, BMP, and PNG formats.
The following C# code snippet shows how to create a photo collage of JPG images using API:
// Load the source image file
using (Merger merger = new Merger(@"c:\sample1.jpg"))
{
// Define image join options with horizontal join mode
ImageJoinOptions joinOptions = new ImageJoinOptions(ImageJoinMode.Horizontal);
// Add another image file to merge
merger.Join(@"c:\sample2.jpg", joinOptions);
// Define image join options with vertical join mode
joinOptions = new ImageJoinOptions(ImageJoinMode.Vertical);
// Add next image file to merge
merger.Join(@"c:\sample3.jpg", joinOptions);
// Merge image files and save result
merger.Save(@"c:\merged.jpg");
}
Merge Documents without Page Breaks
Ability for merging documents without having page break between the last page of the first document and first page of the second document. This means that both of these pages will be joined as one page instead of two pages.
The following C# code sample shows joining two DOC files into one (using API) without having any page break in between.
// Load the source DOC file
using (Merger merger = new Merger(@"c:\sample1.doc"))
{
// Define Word join options
WordJoinOptions joinOptions = new WordJoinOptions();
joinOptions.Mode = WordJoinMode.Continuous;
// Add another DOC file to merge
merger.Join(@"c:\sample2.doc", joinOptions);
// Merge DOC files and save result
merger.Save(@"c:\merged.doc");
}
For a complete list of features, enhancements, and bug fixes in this release please visit, GroupDocs.Merger for .NET 22.4 Release Notes.
Supported Join, Split & Trim File Formats
Microsoft Word: DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF
Microsoft Excel: XLS, XLSX, XLSB, XLSM, XLT, XLTX, XLTM, XLAM
Microsoft PowerPoint: PPT, PPTX, PPS, PPSX
Microsoft Visio: VSDX, VSDM, VSSX, VSSM, VSTX, VSTM, VDX, VSX, VTX
Microsoft OneNote: ONE
OpenOffice: ODT, OTT, ODP, OTP, ODS
Web: HTML, MHT, MHTML
Portable: PDF, XPS
Other: TEX, EPUB
Please visit the Supported Document Types page for the details.
Platform Independence
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:
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.Conversion for .NET supports .NET and Mono frameworks.
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.
Join Specific Pages from Various DOCX
Files
string filePath = @"c:\sample.docx";
string filePath2 = @"c:\sample2.docx";
string filePathOut = @"c:\output\result.docx";
JoinOptions joinOptions = new JoinOptions(1, 4, RangeMode.OddPages);
using(Merger merger = new Merger(filePath, loadOptions)) {
merger.Join(filePath2, joinOptions);
merger.Save(filePathOut);
}
Swap Page Position within PPTX
via C# Code
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);
}
Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License
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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net20 is compatible. net35 was computed. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. 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 | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 2.0
- No dependencies.
-
.NETStandard 2.0
- Microsoft.Extensions.DependencyModel (>= 2.0.4)
- Microsoft.Win32.Registry (>= 4.7.0)
- Mono.Posix.NETStandard (>= 1.0.0)
- SkiaSharp (>= 2.80.1)
- System.Diagnostics.PerformanceCounter (>= 4.5.0)
- System.Drawing.Common (>= 4.7.0)
- System.Reflection.Emit (>= 4.7.0)
- System.Reflection.Emit.ILGeneration (>= 4.7.0)
- System.Security.Permissions (>= 4.5.0)
- System.Text.Encoding.CodePages (>= 4.7.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.11.0 | 414 | 11/19/2024 |
24.10.0 | 2,328 | 10/15/2024 |
24.9.0 | 1,128 | 9/17/2024 |
24.8.0 | 1,531 | 8/27/2024 |
24.7.0 | 2,955 | 7/15/2024 |
24.6.1 | 1,027 | 6/25/2024 |
24.6.0 | 1,537 | 6/3/2024 |
24.4.0 | 23,634 | 4/16/2024 |
24.3.0 | 8,179 | 3/26/2024 |
24.2.0 | 2,092 | 2/26/2024 |
24.1.0 | 3,046 | 1/23/2024 |
23.12.0 | 3,554 | 12/19/2023 |
23.11.0 | 5,206 | 11/22/2023 |
23.10.0 | 7,529 | 10/16/2023 |
23.9.0 | 20,288 | 9/19/2023 |
23.8.0 | 4,751 | 8/17/2023 |
23.5.0 | 6,412 | 5/30/2023 |
23.4.0 | 4,318 | 4/26/2023 |
23.3.1 | 6,309 | 3/16/2023 |
23.3.0 | 2,899 | 3/15/2023 |
22.12.0 | 8,790 | 12/19/2022 |
22.10.0 | 12,309 | 10/24/2022 |
22.7.0 | 16,299 | 7/27/2022 |
22.5.0 | 8,023 | 5/18/2022 |
22.4.0 | 8,439 | 4/25/2022 |
22.1.0 | 21,722 | 1/6/2022 |
21.8.0 | 19,478 | 8/19/2021 |
21.7.0 | 8,040 | 7/27/2021 |
21.6.0 | 7,419 | 6/23/2021 |
21.5.0 | 8,847 | 5/26/2021 |
21.3.0 | 25,729 | 3/29/2021 |
21.2.0 | 22,377 | 2/24/2021 |
20.12.0 | 41,225 | 12/22/2020 |
20.11.0 | 2,068 | 11/24/2020 |
20.10.0 | 22,228 | 10/28/2020 |
20.9.0 | 18,242 | 9/16/2020 |
20.8.0 | 31,827 | 8/20/2020 |
20.7.0 | 18,024 | 7/27/2020 |
20.5.0 | 57,859 | 5/26/2020 |
20.4.0 | 32,280 | 4/22/2020 |
20.2.0 | 60,989 | 2/25/2020 |
20.1.0 | 2,143 | 1/28/2020 |
19.12.0 | 31,781 | 12/20/2019 |
19.11.0 | 30,326 | 11/12/2019 |
19.10.0 | 2,185 | 10/29/2019 |
19.9.0 | 1,469 | 9/26/2019 |
19.7.0 | 2,059 | 7/8/2019 |
19.6.0 | 1,542 | 6/7/2019 |
19.5.0 | 1,378 | 5/24/2019 |
19.4.0 | 1,412 | 4/9/2019 |
19.3.0 | 1,382 | 3/22/2019 |
19.2.0 | 1,365 | 2/25/2019 |
19.1.0 | 1,394 | 1/28/2019 |
18.11.0 | 1,555 | 11/21/2018 |
18.9.0 | 1,743 | 9/4/2018 |
18.7.0 | 1,746 | 7/5/2018 |
18.5.0 | 1,798 | 5/31/2018 |