GroupDocs.Merger for Node.js via Java is a powerful API 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. |
- 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.
Merge documents of the most popular file formats (PDF, DOCX, XLSX, PPTX, JPG, ZIP and more) into single resultant document.
From the command line:
npm install @groupdocs/groupdocs.merger
Change directory to Examples:
cd Examples
Run runExamles.js:
node runExamples.js
// Load the source DOCX file
const merger = new groupdocs.merger.Merger("sample1.docx");
// Add another DOCX file to merge
merger.join("sample2.docx");
// Merge DOCX files and save result
merger.save("merged.docx");
// Load the source DOCX file
const merger = new groupdocs.merger.Merger("sample.docx");
const pageJoinOptions1 = new groupdocs.merger.PageJoinOptions(7, 8)
merger.join("sample2.docx", pageJoinOptions1)
const pageJoinOptions2 = new groupdocs.merger.PageJoinOptions(9, 10)
merger.join("sample3.docx", pageJoinOptions2)
// Merge DOCX files and save result
merger.save("merged.docx");
Home | Product Page | Documentation | Demo | API Reference | Examples | Blog | Search | Free Support | Temporary License