GroupDocs.Conversion at a glance

Explore the capabilities of the API for fast and reliable conversion of PDF, Microsoft Office, HTML, eBook, and image files within JavaScript applications.

Illustration conversion

Flexible conversion

Use the GroupDocs.Conversion API to convert documents in many formats to PDF, Microsoft Office, HTML, eBook, and image files while preserving layout and structure.

Simple format switching

Call a single conversion method with options to move documents between the formats required by your application.

Cross-platform support

Run document conversion in Node.js via Java on different operating systems and environments.

Platform independence

GroupDocs.Conversion for Node.js via Java supports the most popular operating systems targeted LTS and latest Node.js versions. Learn more about the system requirements.

Amazon
Docker
Azure
Eclipse
IntelliJ
Windows
Linux
NPM

Supported file formats

GroupDocs.Conversion for Node.js via Java supports the most popular document formats such as PDF, DOCX, XLSX, PPTX, e-mail, eBook and image formats, You can find the list of supported file formats in the supported file formats page

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

The API enables you to perform conversion from one format to another, convert whole document or specific pages, adjust options for the desired output and more.

Feature icon

Multi-format conversion

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

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.

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

Integrate conversion capabilities into your JavaScript applications so that conversions run as part of your existing workflows.

Feature icon

Robust conversion

Provide reliable file conversions while maintaining 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

This are the most common use cases for GroupDocs.Conversion for Node.js via Java operations which are just a few of the many possible use cases you can find in the basic usage and advanced usage topics.

Convert PDF to PDF/A

GroupDocs.Conversion for Node.js via Java allows you to convert PDF files to PDF/A format, ensuring compliance with the PDF/A standard.
The conversion process is straightforward and requires only a few lines of code.

Convert PDF to PDF/A in JavaScript

'use strict';

// Import the package
const groupdocs = require('@groupdocs/groupdocs.conversion');

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

// Set the format to PDF/A-compliant PDF
const pdfOptions = new groupdocs.PdfOptions();
pdfOptions.setPdfFormat(groupdocs.PdfFormats.PdfA_1A);

// Set the convert options
const convertOptions = new groupdocs.PdfConvertOptions();
convertOptions.setPdfOptions(pdfOptions);

// Convert PDF to PDF/A
converter.convert("converted_pdfa.pdf", convertOptions);

// Exit the process
process.exit(0);

Rasterize PDF

A common scenario is converting an entire PDF document or selected pages into a set of images. GroupDocs.Conversion for Node.js via Java can convert PDFs into image formats such as TIFF, JPG, PNG, GIF, BMP, and others.
You can select the required image format using the ImageFileType class.

Convert PDF to images in JavaScript

'use strict';

// Import the package
const groupdocs = require('@groupdocs/groupdocs.conversion');

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

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

// Convert and save converted_page_1.png, converted_page_2.png, converted_page_3.png, etc. in the output folder
converter.convert("converted_page_.png", convertOptions);

// Exit the process
process.exit(0);

Convert specific pages

You can convert specific pages or a page range from a document to the same or a different format.
The following example demonstrates how to convert pages 1, 2 and 3 from a DOCX file to PDF.

Convert pages 1, 2 and 3 to PDF in JavaScript

'use strict';

// Import the package
const groupdocs = require('@groupdocs/groupdocs.conversion');

// Load the source DOCX file
const converter = new groupdocs.Converter("source.docx");

// Speciry the range of pages to convert
const convertOptions = new groupdocs.PdfConvertOptions();
convertOptions.setPageNumber(1);
convertOptions.setPagesCount(3);

// Convert pages 1, 2 and 3 to PDF
converter.convert("pages_1_2_3.pdf", convertOptions);

// Exit the process
process.exit(0);

Ready to get started?

Download GroupDocs.Conversion for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

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