npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@groupdocs/groupdocs.merger

v24.2.0

Published

GroupDocs.Merger for .NET allows you to merge documents and manipulate document structure across most of famous document types. Merge several documents into one, split single document to multiple documents, reorder or replace document pages, change page o

Downloads

22

Readme

Document Merger API for Node.js

GroupDocs.Merger for-Node.js-via-Java is a Document Merger API for Java developers. It supports over 60 document types from popular categories such as PDF, Microsoft Office, OpenOffice, Visio, images, audio, archives etc.

It allows developers to merge several documents into one, split single document to multiple documents, reorder or replace document pages, change page orientation, manage document protection, render documents as images and more.

Directory | Description --------- | ----------- Examples | Node.js examples and sample documents for you to get started quickly.

Node.js Merger API Features

  • Join two or more documents into one document, join specific pages or page ranges from several source documents into single resultant document.
  • Split a source document to several resultant documents.
  • Move page to another position within a document.
  • Remove single page or a collection of specific page numbers from the source document.
  • Rotate pages within document by setting rotation angle to 90,180 or 270 degrees.
  • Swap two pages positions within the source document. The result is a new document where two pages have their positions exchanged.
  • Extract specified page or page ranges from source document. The result is a new document that contains only specified pages from the source document.
  • Change orientation operation lets to set page orientation (portrait, landscape) for specific or all pages of the document.
  • Manage document password protection: add/update/delete document password and check its existence.
  • Get the basic information about source document - file type, size, pages count, page height and width etc.
  • Document preview feature allows to generate image representations of document pages. This may be helpful for better understanding about document content and its structure. Preview can be generated for all document pages (by default) or for specific page numbers or page range.

Supported File Formats

Merge documents of the most popular file formats (PDF, DOCX, XLSX, PPTX, JPG, ZIP and more) into single resultant document.

Get Started with GroupDocs.Merger-for-Node.js-via-Java

GroupDocs.Merger-for-Node.js-via-Java requires J2SE 7.0 (1.7), J2SE 8.0 (1.8) or above. Please install Java first if you do not have it already.

GroupDocs hosts all Java APIs on GroupDocs Artifact Repository, so simply configure your Maven project to fetch the dependencies automatically.

Installation

From the command line:

npm install @groupdocs/groupdocs.merger

Run Examples

Change directory to Examples:

cd Examples

Run runExamles.js:

node runExamples.js

Merge PDF using Node.js

// Load the source PDF file
const merger = new groupdocs.merger.Merger("sample1.pdf");

//  Add another PDF file to merge
merger.join("sample2.pdf");

// Merge PDF files and save result
merger.save("merged.pdf");

Load password protected DOCX via Node.js

// Load the password protected DOCX file
const loadOptions = new groupdocs.merger.LoadOptions("123");
const merger = new groupdocs.merger.Merger("sample.docx", loadOptions);

// Save the password protected DOCX result
merger.save("merged.docx");

Home | Product Page | Documentation | Demo | API Reference | Examples | Blog | Search | Free Support | Temporary License