GroupDocs.Merger for Node.js via Java

Extract PPTX pages

Use GroupDocs.Merger for Node.js via Java to enhance your Node.js applications with advanced page extraction features for PPTX documents.

How to extract PPTX pages

GroupDocs.Merger makes it easy to extract pages from PPTX documents. Add seamless document processing to your Node.js via Java applications.

  1. Provide the file path of the source PPTX document.
  2. Choose the pages you want to extract.
  3. Run the extraction process.
  4. Save the extracted pages as a new document.
const mergerLib = require('@groupdocs/groupdocs.merger')

// Initialize GroupDocs.Merger with the source document
const merger = new mergerLib.Merger("document.pptx")

// Set up options to extract specific pages
const java = require('java')
const pageArray = java.newArray('int', [2])
const extractOptions = new mergerLib.ExtractOptions(pageArray)

// Perform the extraction operation
merger.extractPages(extractOptions)

// Save the extracted pages as a new file
merger.save("result.pptx")
npm i @groupdocs/groupdocs.merger
click to copy
copied
More examples Documentation

Comprehensive document processing

GroupDocs.Merger for Node.js via Java offers powerful features for handling over 50 widely used business file formats.

Key capabilities of GroupDocs.Merger

Merge different file formats

Combine PDFs, Word documents, PowerPoint presentations, Excel sheets, images, and archives into a single document with flexible options.

Manage document pages

Reorder, move, or remove pages to refine and organize your documents efficiently.

Adjust page layout

Rotate pages to any angle or switch between portrait and landscape orientation as needed.

Extract specific pages

Select and extract only the necessary pages, saving them as a standalone document.

Extract specific pages from a document

This example demonstrates how to extract a selected range of pages from a PPTX file and save them as a new document.

JavaScript

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

// Specify the path to the source document
const merger = new mergerLib.Merger("file_1.pptx")

// Set extraction options to include only even-numbered pages within a range
const evenPages = groupdocs.merger.RangeMode.EvenPages
const extractOptions = new groupdocs.merger.ExtractOptions(1, 3, evenPages)

// Execute the extraction operation
merger.extractPages(extractOptions)

// Save the extracted pages to a new file
merger.save("result.pptx")
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 document processing library that supports over 50 formats, including PDF, Word, Excel, PowerPoint, and images. It allows you to merge, split, extract, rearrange, and delete 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

Discover additional document processing features.

Extract pages from multiple formats

GroupDocs.Merger supports over 50 file formats, enabling seamless document processing.

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