Overview of GroupDocs.Merger for Node.js

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

Illustration merger

Merge documents with ease in Node.js

Combine PDF and Office documents into a single file effortlessly using GroupDocs.Merger for Node.js. With extensive format support, this library ensures seamless integration and merging of various file types, streamlining document management in Node.js applications.

Simplify document handling by segmenting large files

Efficiently split large PDF or Office files into smaller, more manageable sections with GroupDocs.Merger for Node.js. Customize your documents by dividing them based on specific pages, ranges, or extracting individual pages, improving organization and workflow efficiency.

Gain full control over your document’s structure in Node.js

Easily rearrange, swap, or remove pages to customize your document layout using GroupDocs.Merger for Node.js. Adapt your files to meet specific requirements, offering unparalleled flexibility in creating tailored document structures.

Platform independence

GroupDocs.Merger for Node.js is designed to work seamlessly across various operating systems, frameworks, and package managers, ensuring flexibility and compatibility for your development needs.

Amazon
Docker
Azure
Eclipse
IntelliJ
Windows
Linux
Maven

Supported file formats

GroupDocs.Merger for Node.js via Java provides support for a wide range of file formats, enabling versatile document operations.

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

Effortlessly merge, split, and manage documents in PDF and Office formats with GroupDocs.Merger in a Node.js environment.

Feature icon

Seamless document combination

Combine multiple documents into a single file by selecting specific pages or ranges from different sources using GroupDocs.Merger for Node.js.

Feature icon

Document splitting capabilities

Divide a large document into smaller, more manageable files with the advanced splitting tools provided by GroupDocs.Merger for Node.js.

Feature icon

Efficient page movement

Rearrange pages within a document to meet your needs using the MovePage feature, designed for seamless integration in Node.js.

Feature icon

Page removal options

Eliminate unwanted pages or specific page numbers effortlessly with the RemovePages feature in GroupDocs.Merger for Node.js.

Feature icon

Page rotation functionality

Adjust the orientation of pages to 90, 180, or 270 degrees with the simple and effective RotatePages operation.

Feature icon

Page swapping feature

Reorganize your document by swapping the positions of pages using the SwapPages function in GroupDocs.Merger for Node.js.

Feature icon

Selective page extraction

Extract specific pages or ranges to create a new document, focusing only on the content you need with GroupDocs.Merger for Node.js.

Feature icon

Orientation alteration tool

Switch the orientation of pages from portrait to landscape or vice versa using the ChangeOrientation feature in your Node.js applications.

Feature icon

Document page previews

Generate image previews of document pages to review their content and layout with the PreviewPages feature in Node.js.

Code samples

Explore common use cases for GroupDocs.Merger in Node.js. These examples demonstrate how to efficiently merge and split documents using GroupDocs.Merger for Node.js.

Merge multiple DOCX files into one document in Node.js

Use GroupDocs.Merger for Node.js to seamlessly combine multiple DOCX files into a single document. The Merge Word Documents feature simplifies document management by merging files efficiently. Below is a Node.js code snippet demonstrating the merging process:

Example: Merging DOCX files in Node.js

// Load the first DOCX file
const merger = new Merger("sample1.docx");
// Add additional DOCX files to merge
merger.join("sample2.docx");
// Merge the DOCX files and save the output
merger.save("merged.docx");

Split a PDF document into multiple files in Node.js

GroupDocs.Merger for Node.js makes it easy to split large PDF documents into smaller files. The Split Document feature allows you to extract specific pages based on different criteria, such as page range, start/end pages, or odd/even pages. This feature helps organize large documents by breaking them into smaller, more manageable files.

How to split a PDF into separate files in Node.js

// Use GroupDocs.Merger for Node.js to split the PDF file
const filePath = "input.pdf";
const filePathOut = "output.pdf";

// Define SplitOptions with the desired output format
const splitOptions = new SplitOptions(filePathOut, new int[] { 3, 6, 8 });

// Initialize the Merger with the input PDF document
const merger = new Merger(filePath);

// Call the split method with the SplitOptions object to generate separate files
merger.split(splitOptions);

Ready to get started?

Download GroupDocs.Merger for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English