GroupDocs.Merger for Java allows developers to join multiple documents and manipulate document structure across wide range of supported document formats. The Merger API also allows to reorder or replace document pages, change page orientation, manage document password and more.
Directory | Description |
---|---|
Docs | Product documentation containing the Developer's Guide, Release Notes and more. |
Examples | Java examples and sample documents for you to get started quickly. |
- Merge two or more documents into one document.
- Join specific pages or page ranges from several source documents into a single document.
- Divide a document into 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 a document. Rotate pages by setting rotation angle to 90,180 or 270 degrees.
- Swap two pages within the source document.
- Extract specified page or page ranges from a document.
- Set page's orientation (portrait, landscape) for specific or all pages of the document.
- Manage document's protection.
- Obtain document's basic information such as file type, size, pages count, page height & width.
- Generate image representations of document pages.
GroupDocs.Merger for Java requires J2SE 6.0 (1.6), 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.
Merger merger = new Merger("document1.pdf");
{
merger.join("document2.doc");
merger.join("document3.ppt");
merger.join("document4.xls");
merger.save("c:\merged.pdf");
}
int pageNumber = 2;
OleWordProcessingOptions oleWordsOptions = new OleWordProcessingOptions("embedded.pdf", pageNumber);
oleWordsOptions.setWidth(300);
oleWordsOptions.setHeight(300);
Merger merger = new Merger("sample.docx");
{
merger.importDocument(oleWordsOptions);
merger.save("result.docx");
}
Home | Product Page | Documentation | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License