GroupDocs.Conversion at a glance

Explore the capabilities of the API for swift and flawless conversion of PDF, Microsoft Office, HTML, eBook, and image files within Java applications

Illustration conversion

Streamlined conversion

With GroupDocs.Conversion API you can effortlessly convert documents of diverse formats to PDF, Microsoft Office, HTML, eBook, and image files. The API provides flexible and robust options, ensuring the integrity of content and document structure throughout the conversion process.

Effortless switch between formats

The process of using GroupDocs.Conversion API is incredibly straightforward, requiring just one method and a set of options to effortlessly switch between different formats.

Cross-platform compatibility

Explore a conversion solution with inherent cross-platform compatibility, catering to the broader user base and ensuring optimal performance across various environments for all your document conversion requirements.

Platform independence

GroupDocs.Conversion for Java supports the following operating systems, frameworks and package managers

Amazon
Docker
Azure
Eclipse
IntelliJ
Windows
Linux
Maven

Supported file formats

GroupDocs.Conversion for Java supports operations with the following file formats.

Document formats

  • Documents: PDF, XPS, TEX
  • Word: DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF, TXT
  • PowerPoint: PPT, PPTX, PPS, PPSX, ODP, OTP
  • Excel: XLS, XLSX, XLSM, XLSB, XLTM, XLTX, XLT, XLAM
  • Visio: VSDX, VSDM, VSSX, VSTX, VSTM, VSSM, VSX, VTX, VDX
  • OpenDocument: ODT, OTT, ODS

Images & Multimedia

  • Images: BMP, JPEG, PNG, GIF, TIFF, SVG, PS
  • Diagram: VSDX, DRAW, LUCIDCHART
  • CAD & GIS: DWG, DXF, DWF, IFC, SHP, KML, GEOJSON
  • Audio: MP3, WAV, FLAC, AAC, OGG
  • Video: MP4, AVI, MKV, MOV, WMV
  • 3D & Vector: SVG, AI, EPS, CDR, STL, OBJ, FBX, DAE, GLB

Other formats

  • eBook: EPUB, MOBI, AZW, FB2
  • Web: HTML, MHTML, MHT
  • Archives: ZIP, TAR, RAR, 7Z, BZ2, GZ
  • Email & Outlook: PST, OST, MSG, EML
  • Finance: QFX, OFX
  • OneNote: ONE

GroupDocs.Conversion features

Seamlessly convert PDF and office documents to HTML, JPG, PNG, BMP, TIFF, SVG, and many other formats. GroupDocs.Conversion for Java API is designed to be easy to use and integrate into your project. It supports all popular document formats with the ability to customize the conversion process.

Feature icon

Multi-format conversion

Convert files between various formats, including PDF, DOCX, XLSX, PPTX, and more, with ease.

Feature icon

High-fidelity output

Preserve the original quality and formatting of documents during the conversion process.

Feature icon

Converting multiple files

Convert multiple files and combine them into an archive, simplifying the organization of converted content.

Feature icon

Multipage document to images

Convert multipage documents to images page by page, enabling precise control over the transformation process and facilitating image-based document extraction and analysis.

Feature icon

Customizable settings

Fine-tune conversion parameters such as resolution, quality, and layout to meet specific requirements.

Feature icon

Secure processing

Ensure data privacy with password-protected file conversion options.

Feature icon

API integration

Seamlessly integrate the conversion capabilities into your Java applications, making it a seamless part of your workflow.

Feature icon

Robust conversion

Ensure reliable and error-free file conversions, guaranteeing the accuracy and integrity of your transformed documents.

Feature icon

Convert documents from archives

Extract and convert documents from archives, enabling the transformation of content stored within compressed files.

Code samples

Some use cases of typical GroupDocs.Conversion for Java operations

Convert PDF to image

A commonly encountered scenario involves converting an entire PDF document or specific pages into a collection of images. GroupDocs.Conversion for Java offers the capability to convert PDFs into various image formats, such as TIFF, JPG, PNG, GIF, BMP, and more.
You can select your preferred image format using the ImageFileType class.

Converting PDF to PNG in Java

import com.groupdocs.conversion.Converter;
import com.groupdocs.conversion.filetypes.ImageFileType;
import com.groupdocs.conversion.options.convert.ImageConvertOptions;
//...

// Load the source PDF file
Converter converter = new Converter("resume.pdf");

// Set the convert options and specify the output image type
ImageConvertOptions convertOptions = new ImageConvertOptions();
convertOptions.setFormat(ImageFileType.Png);

// Convert each page of PDF document to PNG
converter.convert("page.png", convertOptions);

Convert a segment of a large document

With GroupDocs.Conversion for Java, you can effortlessly convert specific pages from a lengthy document.
You have two methods to accomplish this, depending on your requirements. You can either convert a range of pages or convert specific pages.

Convert DOCX (pages 2-4) to PDF in Java

import com.groupdocs.conversion.Converter;
import com.groupdocs.conversion.options.convert.PdfConvertOptions;
//...

// Load the source DOCX file
Converter converter = new Converter("booklet.docx");
   
// Set the options and specify the range of pages to convert
PdfConvertOptions convertOptions = new PdfConvertOptions();
convertOptions.setPageNumber(2);
convertOptions.setPagesCount(3);

// Convert pages 2-4 to PDF
converter.convert("pages-2-4.pdf", convertOptions);

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