Overview of GroupDocs.Conversion

GroupDocs.Conversion offers high-quality, flexible document conversion from PDF, Office, HTML, and image formats within Python applications.

Illustration conversion

Streamlined conversion process

Convert documents effortlessly to PDF, Office, HTML, eBook, and image formats with a reliable API that maintains content and structure integrity.

Seamless format switching

Switch between document formats with a single method call and straightforward options for efficient conversions.

Cross-platform compatibility

Supports cross-platform operation, allowing Python developers to handle conversions on Windows, and macOS systems with ease.

Platform Support

GroupDocs.Conversion for Python via .NET is compatible with multiple operating systems and Python environments.

Amazon
Docker
Azure
Eclipse
IntelliJ
Windows
Linux
PyPI

Supported file formats

GroupDocs.Conversion for Python via .NET supports various 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
  • 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 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 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

Examples of GroupDocs.Conversion operations in Python

Convert a document to another format

The key feature of GroupDocs.Conversion is the ability to convert a document to a different format.
Specify the output format type using the ConvertOptions class to convert a document.

Convert DOCX to PDF in Python

from groupdocs.conversion import Converter
from groupdocs.conversion.options.convert import PdfConvertOptions

def convert_document_to_another_format():
    # Instantiate Converter with the input document
    with Converter("./business-plan.docx") as converter:
        # Instantiate convert options to define the output format
        pdf_convert_options = PdfConvertOptions()

        # Convert the input document
        converter.convert("./business-plan.pdf", pdf_convert_options)    

if __name__ == "__main__":
    convert_document_to_another_format()

Convert a document to multiple page files

Convert of a single multi-page document into individual page files.
The example demonstrates how to convert each slide in a PPTX presentation to a PNG image.

Convert PPTX slides to PNG in Python

from groupdocs.conversion import Converter
from groupdocs.conversion.filetypes import ImageFileType
from groupdocs.conversion.options.convert import ImageConvertOptions

def convert_all_document_pages():
    # Instantiate Converter with the input document 
    with Converter("./basic-presentation.pptx") as converter:
        # Instantiate convert options and define the output format as PNG
        png_convert_options = ImageConvertOptions()
        png_convert_options.format = ImageFileType.PNG

        # Convert all slides and save to the output folder
        converter.convert_by_page("./converted-pages", png_convert_options)    

if __name__ == "__main__":
    convert_all_document_pages()

Convert files within document containers

Convert files embedded within document containers, such as compressed or packaged files, into individual output files.
The following example demonstrates how to convert each compressed file in ZIP archive to PDF.

Convert files in ZIP archive to PDF in Python

from groupdocs.conversion import Converter
from groupdocs.conversion.options.convert import PdfConvertOptions

def convert_files_within_document_container():
    # Instantiate Converter with the input document
    with Converter("./compressed.zip") as converter:
        # Instantiate convert options to define output format as PDF
        pdf_convert_options = PdfConvertOptions()

        # Extract, convert and save output files in PDF format
        converter.convert_multiple("./converted-files", pdf_convert_options)    

if __name__ == "__main__":
    convert_files_within_document_container()

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