Overview of GroupDocs.Merger for Node.js

Comprehensive API for merging, splitting, rearranging, and refining documents, slides, and diagrams in Node.js applications.

Illustration merger

Merge Documents with Ease in Node.js

Utilize GroupDocs.Merger for Node.js to effortlessly combine PDF and Office documents into a unified file. This library extends broad format support, enabling the smooth integration and merging of different file types, thereby enhancing the document management process in Node.js applications.

Simplify Document Handling by Segmenting Large Files

With GroupDocs.Merger for Node.js, you can easily split substantial PDF or Office files into more manageable pieces. Tailor your documents by dividing them based on specific pages, ranges, or individual page extraction, enhancing the organization and efficiency of your document workflows.

Gain Full Control Over Your Document’s Structure in Node.js

Redefine your document’s layout by effortlessly rearranging, exchanging, or discarding pages using GroupDocs.Merger for Node.js. Adapt your documents to meet unique needs, providing unmatched flexibility in constructing a custom file configuration.

Platform independence

GroupDocs.Merger for Node.js supports the following operating systems, frameworks and package managers

Amazon
Docker
Azure
Eclipse
IntelliJ
Windows
Linux
Maven

Supported file formats

GroupDocs.Merger for Node.js via Java supports operations with the following file formats.

Microsoft Office formats

  • Word: DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF, TXT
  • Excel: XLS, XLSX, XLSM, XLSB, XLTM, XLTX, XLT, XLAM
  • PowerPoint: PPT, PPTX, PPS, PPSX, ODP, OTP
  • Visio: VSDX, VSDM, VSSX, VSTX, VSTM, VSSM, VSX, VTX, VDX

Documents & images

  • Documents: PDF, XPS, TEX
  • Images: BMP, JPEG, PNG, GIF, TIFF, SVG, PS
  • OpenDocument: ODT, OTT, ODS
  • eBook: EPUB

Other formats

  • Web: HTML, MHTML, MHT
  • Archives: ZIP, TAR, RAR, 7Z, BZ2, GZ
  • OneNote: ONE

Key Features of GroupDocs.Merger for Node.js

Efficiently merge, split, and manipulate documents in PDF and Office formats using GroupDocs.Merger in a Node.js environment.

Feature icon

Seamless Document Combination

Easily merge multiple documents into one by combining specific pages or ranges from various files, using the GroupDocs.Merger for Node.js.

Feature icon

Document Splitting Capabilities

Split a single document into several smaller files for better management and organization, utilizing the comprehensive split feature of GroupDocs.Merger for Node.js.

Feature icon

Efficient Page Movement

Reposition pages within a document to suit your requirements by using the intuitive MovePage feature in the Node.js environment.

Feature icon

Page Removal Options

Remove unnecessary pages or specific page numbers easily with the GroupDocs.Merger’s RemovePages feature tailored for Node.js.

Feature icon

Page Rotation Functionality

Rotate pages within a document to the desired orientation—90, 180, or 270 degrees—using the straightforward RotatePages operation.

Feature icon

Page Swapping Feature

Modify the order of your document’s pages by swapping their positions, thus creating a reorganized document with the SwapPages function.

Feature icon

Selective Page Extraction

Create a new document from selected pages or page ranges, extracting only the necessary content with GroupDocs.Merger for Node.js.

Feature icon

Orientation Alteration Tool

Change the orientation of specific or all pages from portrait to landscape or vice versa, employing the ChangeOrientation feature in your Node.js projects.

Feature icon

Document Page Previews

Generate image previews of document pages to better understand their content and layout, using the PreviewPages feature within Node.js.

Code Samples

Explore typical use cases for GroupDocs.Merger tailored to Node.js environments. These examples demonstrate the efficiency and ease of merging documents using the GroupDocs.Merger for Node.js.

Efficiently Merge DOCX Files into One Document Using Node.js

Leverage the GroupDocs.Merger for Node.js to seamlessly merge multiple DOCX files into a single comprehensive document. Utilize our Merge Word Documents feature to efficiently combine files, enhancing document management and productivity. Below, find a Node.js code snippet to guide you through the document merge process:

Node.js Example: Merging DOCX Files

// Load the initial DOCX file
const merger = new Merger("sample1.docx");
// Append additional DOCX files for merging
merger.join("sample2.docx");
// Execute the merge process and save the combined document
merger.save("merged.docx");

Split a PDF Document into Individual Files in Node.js

With GroupDocs.Merger for Node.js, splitting a document into multiple files is streamlined. Our Split Document feature allows for efficient management and extraction of specific sections from large PDF documents, making your document handling more effective. This feature supports splitting documents by page range, start/end pages, or odd/even page numbers, among other criteria.

How to Split Documents into Separate Files with Node.js

// Begin by splitting the PDF file using GroupDocs.Merger for Node.js API
const filePath = "input.pdf";
const filePathOut = "output.pdf";

// Set up SplitOptions class with the format for output files
const splitOptions = new SplitOptions(filePathOut, new int[] { 3, 6, 8 });

// Initialize Merger with the PDF document to be split
const merger = new Merger(filePath);

// Invoke the split method with the SplitOptions object to obtain the resulting documents
merger.split(splitOptions);
 English