GroupDocs.Merger for Node.js via Java

Join JPEG files

GroupDocs.Merger for Node.js via Java allows you to seamlessly join JPEG documents within your Node.js applications.

How to join JPEG documents

GroupDocs.Merger provides seamless joining for JPEG documents. Enhance your Node.js via Java applications by combining multiple files into one.

  1. Set the path to the first JPEG document.
  2. Select the second document.
  3. Define optional parameters.
  4. Join the files and save the output document.
const mergerLib = require('@groupdocs/groupdocs.merger')

// Initialize Merger with the input JPEG file
const merger = new mergerLib.Merger("file_frst.jpeg")

// Join the file with another document
merger.join("file_scnd.jpeg")

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

Advanced document joining

GroupDocs.Merger for Node.js via Java is designed to work with over 50 popular file formats, providing robust document processing capabilities.

Key capabilities of GroupDocs.Merger

Join various document types

Effortlessly join PDFs, Word documents, presentations, spreadsheets, images, and more. Customize which pages to include as needed.

Modify document pages

Rearrange, delete, or swap pages to better structure your business documents.

Adjust page settings

Rotate pages to any angle and change their orientation between landscape and portrait for supported file formats.

Extract document pages

Select and extract specific pages, saving them as a new standalone document.

Join selected pages from different file formats

This example shows how to join JPEG files while selecting specific pages from other document types.

JavaScript

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

// Specify the primary document path
const merger = new mergerLib.Merger("file_frst.jpeg")

// Set options to include selected pages
PageJoinOptions joinOpt1 = new mergerLib.PageJoinOptions(1, 2)
PageJoinOptions joinOpt2 = new mergerLib.PageJoinOptions(3, 4)

// Join the primary file with pages from another document
merger.join("file_scnd.docx", joinOpt1)
merger.join("file_thrd.xlsx", joinOpt2)

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

About GroupDocs.Merger

GroupDocs.Merger for Node.js via Java is a comprehensive tool for document management. It supports more than 50 formats, including PDF, Word, Excel, PowerPoint, images, and archives, enabling you to join, split, extract, swap, and remove pages with ease.
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 functionalities

Explore additional features and operations supported by GroupDocs.Merger.

Join multiple file formats

GroupDocs.Merger supports over 50 file types, ensuring seamless document processing for various business needs.

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