GroupDocs.Merger for Node.js via Java

Merge SVG files

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

How to merge SVG documents

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

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

// Initialize Merger with the input SVG file
const merger = new mergerLib.Merger("file_1.svg")

// Combine the file with another document
merger.join("file_2.svg");

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

Advanced document merging

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

Merge various document types

Effortlessly combine PDFs, Word documents, presentations, spreadsheets, images, and more. Customize which pages to merge 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.

Merge selected pages from different file formats

This example shows how to merge SVG 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_1.svg")

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

// Merge the primary file with pages from another document
merger.join("file_2.docx", joinOptions12)
merger.join("file_3.xlsx", joinOptions34)

// Save the final merged document to the desired location
merger.save("result.svg")
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 merge, 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.

Combine 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