GroupDocs.Merger for Java

Combine PPTX files

With GroupDocs.Merger for Java, you can develop advanced Java applications that merge PPTX documents effortlessly.

How to merge PPTX documents

GroupDocs.Merger provides merging capabilities for PPTX documents. Enhance your Java applications by merging multiple files into one.

  1. Specify the path to the first PPTX file.
  2. Select the second file.
  3. Set additional options if needed.
  4. Merge the files and save the output.
// Initialize Merger with the input PPTX document
Merger merger = new Merger("file_1.pptx");

// Merge the document with another file
merger.join("file_2.pptx");

// Save the merged document to the desired location
merger.save("result.pptx");
Maven XML
click to copy
copied
More examples Documentation

Document merging tools

GroupDocs.Merger for Java supports more than 50 popular business file formats, offering a wide range of document manipulation features.

Key features of GroupDocs.Merger

Merge different document formats

Combine documents such as PDFs, Word files, presentations, spreadsheets, images, and more. Apply options to specify which pages should be processed.

Page manipulation

Easily move, remove, or swap selected pages to structure your business documents as needed.

Adjust page appearance

Rotate pages to any angle and change orientation (landscape or portrait) for supported document types.

Extract pages

Extract specific pages and save them as a new file or document.

Merge specific pages from files of different formats

This example demonstrates how to merge PPTX files while including specific pages from documents in other formats.

Java

// Specify the main file path
Merger merger = new Merger("file_1.pptx");

// Define options for selecting specific pages
PageJoinOptions joinOptions12 = new PageJoinOptions(1, 2);
PageJoinOptions joinOptions34 = new PageJoinOptions(3, 4);

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

// Save the merged file to a new location
merger.save("result.pptx");
Maven XML
click to copy
copied
More examples Documentation

About GroupDocs.Merger

GroupDocs.Merger for Java is a powerful solution for document manipulation. It supports over 50 file formats, including PDF, Word, Excel, PowerPoint, images, and archives. Perform operations like merging, splitting, extracting, swapping, and removing 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 features

Explore additional supported operations

Merge various file formats

GroupDocs.Merger supports over 50 file formats, allowing you to manipulate business documents with efficiency.

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