
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
groupdocs-merger-cloud
Advanced tools
Node.js module for communicating with the GroupDocs.Merger Cloud API
GroupDocs.Merger Cloud allows you to merge documents and manipulate document structure across wide range of supported document types - PDF, DOCX/DOC, PPTX/PPT, XLSX/XLS, VSDX/VSD, ODT, ODS, ODP, HTML, EPUB and many others. Merge several documents into one, split single document to multiple documents, reorder or replace document pages, change page orientation, manage document password and perform other manipulations with GroupDocs.Merger Cloud API.
A package groupdocs-merger-cloud is available at npmjs.com. You can install it with:
npm install groupdocs-merger-cloud
This example demonstrates merging different Word files seamlessly with a few lines of code:
// For complete examples and data files, please go to https://github.com/groupdocs-merger-cloud/groupdocs-merger-cloud-node-samples
global.appSid = "XXXX-XXXX-XXXX-XXXX"; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
global.appKey = "XXXXXXXXXXXXXXXX"; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
global.documentApi = merger_cloud.DocumentApi.fromKeys(appSid, appKey);
let item1 = new merger_cloud.JoinItem();
item1.fileInfo = new merger_cloud.FileInfo();
item1.fileInfo.filePath = "WordProcessing/sample-10-pages.docx";
item1.pages = [3, 6, 8];
let item2 = new merger_cloud.JoinItem();
item2.fileInfo = new merger_cloud.FileInfo();
item2.fileInfo.filePath = "WordProcessing/four-pages.docx";
item2.startPageNumber = 1
item2.endPageNumber = 4
item2.rangeMode = merger_cloud.JoinItem.RangeModeEnum.OddPages;
let options = new merger_cloud.JoinOptions();
options.joinItems = [item1, item2];
options.outputPath = "Output/joined-pages.docx";
let result = await documentApi.join(new merger_cloud.JoinRequest(options));
Or compile and run same written in TypeScript:
// load the module
import { InfoApi } from "groupdocs-merger-cloud";
// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required).
const appSid: string = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
const appKey: string = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
// construct MergerApi
const infoApi: InfoApi = InfoApi.fromKeys(appSid, appKey);
// retrieve supported file-formats
infoApi.getSupportedFileFormats()
.then((result) => {
console.log("Supported file-formats:");
result.formats.forEach((format) => {
console.log(format.fileFormat + " (" + format.extension + ")");
});
})
.catch((error) => {
console.log("Error: " + error.message);
});
GroupDocs.Merger Cloud Node.js SDK licensed under MIT License.
Your feedback is very important to us. Please feel free to contact us using our Support Forums.
FAQs
GroupDocs.Merger Cloud SDK for Node.js
The npm package groupdocs-merger-cloud receives a total of 82 weekly downloads. As such, groupdocs-merger-cloud popularity was classified as not popular.
We found that groupdocs-merger-cloud demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.