GroupDocs.Merger 24.8.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package GroupDocs.Merger --version 24.8.0                
NuGet\Install-Package GroupDocs.Merger -Version 24.8.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" Version="24.8.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GroupDocs.Merger --version 24.8.0                
#r "nuget: GroupDocs.Merger, 24.8.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 as a Cake Addin
#addin nuget:?package=GroupDocs.Merger&version=24.8.0

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

Document Merger .NET API

Version 24.8.0 NuGet

banner

Product Page DOCS Demos API Ref Examples Blog Releases Support Temp 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.

Content

What's new in the GroupDocs.Merger for .NET 24.8.0

The latest release of GroupDocs.Merger for .NET introduces a fluent syntax feature, enabling a more compact and intuitive approach to chaining method calls for document manipulation. This enhancement allows developers to efficiently perform a variety of operations, such as:

  • Merging multiple documents or specific pages from different files.
  • Splitting documents into multiple outputs or by specific page numbers.
  • Reordering, removing, rotating, or swapping pages within a document.
  • Changing page orientation or managing document passwords.

Here’s a quick example of how the fluent syntax simplifies the merging process:

using (Merger merger = new Merger(@"c:\document1.pdf"))
{
    merger
    .Join(@"c:\document2.docx")
    .Join(@"c:\document3.pptx")
    .Join(@"c:\document4.xlsx")
    .Save(@"c:\merged.pdf");
}

Source*

To view the complete list of all new features, enhancements, and bug fixes introduced in this release please visit the GroupDocs.Merger for .NET 24.8 Release Notes.


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 Image to PDF/JPEG: Convert and merge multiple images into a single PDF or JPEG document, maintaining high-quality output with customizable compression levels for optimal storage and display.
  • Merge XLSX Files: Allows developers to merge XLSX files 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

  • Dynamic Page Reordering: Reorder pages within your documents to create a customized sequence, perfect for organizing presentations, reports, or any multi-page document.
  • 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

  • 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.
  • Seamless Cross-Format Merging: Merge different document formats into a single, unified document, perfect for consolidating content from various sources into one accessible file.

Top

Document Conversion

  • HTML to Document Conversion: Merge and convert multiple HTML pages into a single document, preserving all web content, including text, images, and forms, ideal for archiving web pages or creating eBooks.
  • Image to PDF/JPEG Conversion: Convert and merge various image files into a high-quality PDF or JPEG document, maintaining image fidelity while enabling easier distribution and printing.

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.
  • 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.
  • 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.

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

Specialized Document Processing

  • Batch Document Processing: Perform batch operations like merging or splitting multiple documents at once, increasing productivity and efficiency in handling large volumes of files.
  • Document Metadata Management: Extract, edit, or remove metadata from documents, ensuring that sensitive information is managed or cleaned as needed before sharing or archiving.

Top

Supported Audio Types

The following table indicates the file formats that GroupDocs.Merger can work with.

Format Description Join Split Cross-format audio merging
WAV WAV Audio File
MP3 MP3 Audio File

Top

Supported Archive Types

The following table indicates the file formats that GroupDocs.Merger can work with.

Format Description Join Split Cross-format archive merging
ZIP ZIP Archive File
TAR TAR Archive File
RAR RAR Archive File
7Z 7Z Archive File
GZ GZ Archive File
BZ2 BZ2 Archive File

Top

Supported cross-merging Document Types

The following table indicates the file formats that GroupDocs.Merger can work with.

Format Description Cross-format merge inside family Cross-format merge to PDF / XPS Cross-format merge to DOC / DOCX
DOC Microsoft Word Document
DOCX Microsoft Word Open XML Document
DOCM Word Open XML Macro-Enabled Document
DOT Word Document Template
DOTX Word Open XML Document Template
DOTM Word Open XML Macro-Enabled Document Template
RTF Rich Text Format File
ODT OpenDocument Text Document
OTT OpenDocument Document Template
HTML Hypertext Markup Language File
MHT MHTML Web Archive
MHTML MIME HTML
PDF Portable Document Format File
XPS XML Paper Specification File
TEX LaTeX Source Document
EPUB Open eBook File
PS PostScript File
PPT Microsoft PowerPoint 97-2003 Presentation
PPTX Microsoft PowerPoint Presentation
PPS Microsoft PowerPoint 97-2003 Slide Show
PPSX Microsoft PowerPoint Slide Show
ODP OpenDocument Presentation
OTP OpenDocument Presentation Template
XLS Microsoft Excel 97-2003 Worksheet
XLSX Microsoft Excel Worksheet
XLSB Microsoft Excel Binary Worksheet
XLSM Microsoft Excel Macro-Enabled Worksheet
XLT Microsoft Excel Template File
XLTX Excel Open XML Spreadsheet Template
XLTM Excel Open XML Macro-Enabled Spreadsheet Template
XLAM Excel Open XML Macro-Enabled Add-in
ODS OpenDocument Spreadsheet
VSDX Microsoft Visio Drawing
VSDM Microsoft Visio Macro-Enabled Drawing
VSSX Microsoft Visio Stencil
VSSM Microsoft Visio Macro-Enabled Stencil
VSTX Microsoft Visio Template
VSTM Microsoft Visio Macro-Enabled Template
VDX Microsoft Visio 2003-2010 XML Drawing
VSX Microsoft Visio 2003-2010 XML Stencil
VTX Microsoft Visio 2003-2010 XML Template
ONE Microsoft OneNote
TXT Plain Text File
ERR Error Log File
CSV Comma Separated Values File
TSV Tab Separated Values File
JPG JPG Image File
JPEG JPEG Image File
BMP Bitmap Image File
PNG Portable Network Graphics
GIF Graphical Interchange Format
TIF Tagged Image Format
TIFF Tagged Image File Format
SVG Scalar Vector Graphics
SVGZ Compressed Scalar Vector Graphics
ZIP ZIP Archive File
TAR TAR Archive File
RAR RAR Archive File
7Z 7Z Archive File
GZ GZ Archive File
BZ2 BZ2 Archive File

Top

Supported Image Types

The following table indicates the file formats that GroupDocs.Merger can work with.

Format Description Join Split Extract pages Cross-format image merging Cross-format merge to PDF
JPG JPG Image File
JPEG JPEG Image File
BMP Bitmap Image File
PNG Portable Network Graphics
GIF Graphical Interchange Format
TIF Tagged Image Format
TIFF Tagged Image File Format
SVG Scalar Vector Graphics
SVGZ Compressed Scalar Vector Graphics
EMF Windows Enhanced Metafile
EMZ Windows Compressed Enhanced Metafile

Top

Supported Document Types

To simplify the table into smaller sections, I'll group similar entries together into multiple tables. Here’s the breakdown:

Top

Word Document Formats

Format Description Password protection Join Split Extract pages Move page Remove pages Swap pages Change page orientation Rotate pages Import document Cross-format merge to PDF / XPS Cross-format merge to DOC / DOCX
DOC Microsoft Word Document
DOCX Microsoft Word Open XML Document
DOCM Word Open XML Macro-Enabled Document
DOT Word Document Template
DOTX Word Open XML Document Template
DOTM Word Open XML Macro-Enabled Document Template

Top

Rich Text and OpenDocument Formats

Format Description Password protection Join Split Extract pages Move page Remove pages Swap pages Change page orientation Rotate pages Import document Cross-format merge to PDF / XPS Cross-format merge to DOC / DOCX
RTF Rich Text Format File
ODT OpenDocument Text Document
OTT OpenDocument Document Template

Top

Web and PDF Formats

Format Description Password protection Join Split Extract pages Move page Remove pages Swap pages Change page orientation Rotate pages Import document Cross-format merge to PDF / XPS Cross-format merge to DOC / DOCX
HTML Hypertext Markup Language File
MHT MHTML Web Archive
MHTML MIME HTML
PDF Portable Document Format File
XPS XML Paper Specification File

Top

Presentation Formats

Format Description Password protection Join Split Extract pages Move page Remove pages Swap pages Change page orientation Rotate pages Import document Cross-format merge to PDF / XPS Cross-format merge to DOC / DOCX
PPT Microsoft PowerPoint 97-2003 Presentation
PPTX Microsoft PowerPoint Presentation
PPS Microsoft PowerPoint 97-2003 Slide Show
PPSX Microsoft PowerPoint Slide Show
PPTM Microsoft PowerPoint Macro-Enabled Presentation

Top

Spreadsheet Formats

Format Description Password protection Join Split Extract pages Move page Remove pages Swap pages Change page orientation Rotate pages Import document Cross-format merge to PDF / XPS Cross-format merge to DOC / DOCX
XLS Microsoft Excel 97-2003 Worksheet
XLSX Microsoft Excel Worksheet
XLSB Microsoft Excel Binary Worksheet
XLSM Microsoft Excel Macro-Enabled Worksheet
XLT Microsoft Excel Template File
XLTX Excel Open XML Spreadsheet Template
XLTM Excel Open XML Macro-Enabled Spreadsheet Template
XLAM Excel Open XML Macro-Enabled Add-in
ODS OpenDocument Spreadsheet

Top

Visio® Formats

Format Description Password protection Join Split Extract pages Move page Remove pages Swap pages Change page orientation Rotate pages Import document Cross-format merge to PDF / XPS Cross-format merge to DOC / DOCX
VSDX Microsoft Visio Drawing
VSDM Microsoft Visio Macro-Enabled Drawing
VSSX Microsoft Visio Stencil
VSSM Microsoft Visio Macro-Enabled Stencil
VSTX Microsoft Visio Template
VSTM Microsoft Visio Macro-Enabled Template
VDX Microsoft Visio 2003-2010 XML Drawing
VSX Microsoft Visio 2003-2010 XML Stencil
VTX Microsoft Visio 2003-2010 XML Template

Top

Miscellaneous Formats

Format Description Password protection Join Split Extract pages Move page Remove pages Swap pages Change page orientation Rotate pages Import document Cross-format merge to PDF / XPS Cross-format merge to DOC / DOCX
ONE Microsoft OneNote
TXT Plain Text File
ERR Error Log File
CSV Comma Separated Values File
TSV Tab Separated Values File

Top

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:

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

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 code 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

Swapping Pages in a PDF Document

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

string filePath = @"c:\sample.pdf";
string filePathOut = @"c:\output\swapped.pdf";
int pageNumber1 = 2;
int pageNumber2 = 5;

using (Merger merger = new Merger(filePath))
{
    merger.SwapPages(pageNumber1, pageNumber2);
    merger.Save(filePathOut);
}

Top

Reordering Pages in a PPTX Presentation

This example illustrates how to reorder pages in a PowerPoint® presentation by specifying a custom page order.

string filePath = @"c:\sample.pptx";
string filePathOut = @"c:\output\reordered.pptx";
int[] pageOrder = { 3, 1, 2 }; // New order for pages

using (Merger merger = new Merger(filePath))
{
    merger.ReorderPages(pageOrder);
    merger.Save(filePathOut);
}

Product Page DOCS Demos API Ref Examples Blog Releases Support Temp License


Top

Tags

Document Merging | Document Splitting | Merge PDF | Merge DOCX | Merge XLSX | Page Reordering | Page Swapping | Document Security | Password Management | Remove Password | Cross Platform | Batch Processing | Document Conversion | PDF to JPEG | HTML to PDF | Cross Format Merging | OLE Embedding | Document Manipulation | Image to PDF | High Performance | DotNet | API | Page Rotation | Xamarin | Mono | Document Management

Product 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. 
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.10.0 1,027 10/15/2024
24.9.0 1,124 9/17/2024
24.8.0 1,407 8/27/2024
24.7.0 2,602 7/15/2024
24.6.1 1,021 6/25/2024
24.6.0 1,529 6/3/2024
24.4.0 21,045 4/16/2024
24.3.0 7,255 3/26/2024
24.2.0 2,061 2/26/2024
24.1.0 2,924 1/23/2024
23.12.0 3,475 12/19/2023
23.11.0 5,125 11/22/2023
23.10.0 7,467 10/16/2023
23.9.0 20,206 9/19/2023
23.8.0 4,719 8/17/2023
23.5.0 5,977 5/30/2023
23.4.0 4,180 4/26/2023
23.3.1 6,220 3/16/2023
23.3.0 2,890 3/15/2023
22.12.0 8,735 12/19/2022
22.10.0 11,805 10/24/2022
22.7.0 15,996 7/27/2022
22.5.0 7,944 5/18/2022
22.4.0 8,143 4/25/2022
22.1.0 21,317 1/6/2022
21.8.0 19,187 8/19/2021
21.7.0 7,926 7/27/2021
21.6.0 7,243 6/23/2021
21.5.0 8,801 5/26/2021
21.3.0 25,507 3/29/2021
21.2.0 22,184 2/24/2021
20.12.0 41,023 12/22/2020
20.11.0 2,064 11/24/2020
20.10.0 22,063 10/28/2020
20.9.0 18,145 9/16/2020
20.8.0 31,639 8/20/2020
20.7.0 17,890 7/27/2020
20.5.0 57,539 5/26/2020
20.4.0 32,066 4/22/2020
20.2.0 60,637 2/25/2020
20.1.0 2,139 1/28/2020
19.12.0 31,673 12/20/2019
19.11.0 30,291 11/12/2019
19.10.0 2,167 10/29/2019
19.9.0 1,466 9/26/2019
19.7.0 2,056 7/8/2019
19.6.0 1,512 6/7/2019
19.5.0 1,374 5/24/2019
19.4.0 1,408 4/9/2019
19.3.0 1,378 3/22/2019
19.2.0 1,361 2/25/2019
19.1.0 1,391 1/28/2019
18.11.0 1,552 11/21/2018
18.9.0 1,732 9/4/2018
18.7.0 1,743 7/5/2018
18.5.0 1,788 5/31/2018