GroupDocs.Merger for Node.js via Java

Merge PDF files

Leverage GroupDocs.Merger for Node.js via Java to build efficient Node.js applications that merge and manage PDF documents seamlessly.

How to merge PDF documents

GroupDocs.Merger simplifies merging PDF documents. Integrate merging functionality into your Node.js via Java applications and combine multiple files effortlessly.

  1. Specify the path to the first PDF file.
  2. Select the second file to merge.
  3. Set additional merge options if needed.
  4. Run the merge operation and save the output file.
const mergerLib = require('@groupdocs/groupdocs.merger')

// Initialize Merger with the input PDF document
const merger = new mergerLib.Merger("file_1.pdf")

// Merge the document with another file
merger.join("file_2.pdf");

// Save the merged document to the desired location
merger.save("result.pdf");
npm i @groupdocs/groupdocs.merger
click to copy
copied
More examples Documentation

Document merging tools

GroupDocs.Merger for Node.js via Java supports more than 50 widely used business file formats, offering extensive document processing capabilities.

Key features of GroupDocs.Merger

Merge different document formats

Combine files such as PDFs, Word documents, spreadsheets, presentations, images, and more. Choose specific pages to merge based on your requirements.

Page manipulation

Rearrange, delete, or swap pages to organize documents the way you need.

Adjust page appearance

Rotate pages to any angle and switch between landscape and portrait orientations for supported formats.

Extract pages

Select specific pages and save them as a new file.

Merge files of different formats

This example shows how to merge multiple files of different supported formats into a single document.

JavaScript

const mergerLib = require('@groupdocs/groupdocs.merger')

// Specify the main file path
const merger = new mergerLib.Merger("file_1.pdf")

// Merge it with a Microsoft Word document
merger.join("file_2.docx")

// Add a Microsoft Excel spreadsheet to the merged document
merger.join("file_3.xlsx")

// Save the merged document to the specified location
merger.save("result.pdf")
npm i @groupdocs/groupdocs.merger
click to copy
copied
More examples Documentation

About GroupDocs.Merger

GroupDocs.Merger for Node.js via Java is a powerful document processing solution that supports over 50 file formats, including PDFs, Word documents, spreadsheets, presentations, images, and archives. Effortlessly merge, split, extract, reorder, and delete pages as needed.
Learn more
About illustration

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.

Key features

Explore additional document processing capabilities

Merge various file formats

GroupDocs.Merger works with over 50 file formats, enabling smooth document merging and editing.

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