Skip to main content

GroupDocs.Conversion for Python via .NET is a document conversion API that supports over 10,000 conversion pairs across popular formats and enables developers to easily convert files to various formats, such as PDF, HTML, JPG, or PNG. With this API, you can seamlessly convert a wide range of file types, including popular OpenDocument and Microsoft Office formats like DOCX, XLSX, and PPTX, as well as specialized CAD and graphic editor files like DWG, DXF, PSD, AI, and CDR. Supports Python 3.5 and higher.

Project description

GroupDocs.Conversion for Python via .NET Banner

Product Home | Docs | Live Demos | API Reference | Blog | Search | Free Support Forum | Temporary License

Table of Contents

About

GroupDocs.Conversion for Python via .NET is a document conversion API that lets you easily convert the most popular file formats, including DOCX, XLSX, PPTX, PDF, CAD drawings, and many more. It preserves layout and formatting while offering customization options for each format.

Quick Example: Convert DOCX to PDF

Use a few lines of Python code to convert documents between different formats:

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

# 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 to PDF
    converter.convert("./business-plan.pdf", pdf_convert_options)

Key Features

GroupDocs.Conversion for Python via .NET provides a single, unified API for advanced document conversion:

  • Wide format support – Supports over 10,000 conversion pairs across popular formats like Microsoft Office, PDF, HTML, images, CAD drawings, and more without requiring the original applications.
  • Flexible conversion options – Convert entire documents, specific pages, page ranges, or files within document containers such as compressed files and email archives.
  • Format detection – Automatically detects the format of input files, eliminating the need to specify source formats manually.
  • Layout preservation – Maintains original document structure, formatting, and layout during conversion with high fidelity output.
  • Customizable output – Fine-tune conversion settings for each target format, including page size, orientation, quality, and format-specific options.
  • Cross-platform support – Work with documents on Windows, Linux and macOS using the .NET-powered conversion engine from your Python code.

Supported Document Formats

GroupDocs.Conversion for Python via .NET supports a wide range of document families including:

  • Word processing – DOC, DOCX, RTF, TXT, ODT and others
  • PDF & markup – PDF, PDF/A, HTML/MHTML, Markdown, XML
  • Spreadsheets – XLS, XLSX, ODS, CSV and related formats
  • Presentations – PPT, PPTX, ODP and similar formats
  • Email & notes – EML, MSG and related formats
  • eBooks & web content – EPUB, MOBI and others
  • Images – JPEG, PNG, TIFF, GIF, BMP, SVG and more
  • CAD & 3D formats – DWG, DXF, OBJ, 3DS and others

See the complete list of supported document formats.


Getting Started

Prerequisites

  • Python 3.5+
  • .NET 6 runtime or higher
  • Windows, Linux, or macOS

Learn more about system requirements.

Installation

You can install GroupDocs.Conversion for Python via .NET from PyPI or download it from the official website.

Install from PyPI

pip install groupdocs-conversion-net

Upgrade to the latest version

pip install --upgrade groupdocs-conversion-net

Download from the official website

To download the GroupDocs.Conversion package for your operating system, please visit the official GroupDocs Releases website and choose the appropriate package based on your system's architecture.

Learn more about installation.


Use Cases

Beyond basic document conversion, here are the most common use cases for converting documents between different formats.

📁 Code Examples: For complete, runnable examples with sample files, check out the GroupDocs.Conversion for Python via .NET - Code Examples repository. See how to run code examples for more details.

Convert All Pages to Images

This example shows how to convert each slide in a PPTX presentation to a PNG image and save the output images to a specified folder.

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

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

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

Convert Files Within Document Container

This example shows how to convert each compressed file in a ZIP archive to PDF.

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

# Instantiate Converter with the input document
with Converter("./compressed.zip") as converter:
    # Instantiate convert options
    pdf_convert_options = PdfConvertOptions()

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

Licensing

For testing without trial limitations, you can request a 30-day Temporary License:

  • Visit the Get a Temporary License page
  • Follow the instructions to request your temporary license
  • Copy the license file and apply it using the code example
import os
from groupdocs.conversion import License

# Get absolute path to license file
license_path = os.path.abspath("./GroupDocs.Conversion.lic")

# Instantiate License and set the license
license = License()
license.set_license(license_path)

This product is licensed under the GroupDocs End User License Agreement (EULA). For pricing information, visit the GroupDocs.Conversion for Python via .NET pricing page.


Support

GroupDocs provides unlimited free technical support for all of its products. Support is available to all users, including evaluation. The support is provided at Free Support Forum, Paid Support Helpdesk and Paid Consulting.

Free Support Forum

The GroupDocs Free Support Forum is available to all users and provides:

  • Direct access to the GroupDocs development team
  • Community-driven support and knowledge sharing
  • No time limitations on support requests
  • Access to historical solutions and discussions

Paid Support Helpdesk

The Paid Support Helpdesk offers:

  • Higher priority response times
  • Dedicated support team
  • Extended support hours
  • Priority issue resolution

Paid Consulting

We can work together with you on your project and develop a part or complete application. If you need new features in the existing GroupDocs product or to create API for new file formats, send us a request at consulting.groupdocs.com/contact.


Additional Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

groupdocs_conversion_net-25.12-py3-none-win_amd64.whl (201.0 MB view details)

Uploaded Python 3Windows x86-64

groupdocs_conversion_net-25.12-py3-none-win32.whl (194.8 MB view details)

Uploaded Python 3Windows x86

groupdocs_conversion_net-25.12-py3-none-macosx_11_0_arm64.whl (201.0 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

groupdocs_conversion_net-25.12-py3-none-macosx_10_14_x86_64.whl (210.5 MB view details)

Uploaded Python 3macOS 10.14+ x86-64

File details

Details for the file groupdocs_conversion_net-25.12-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for groupdocs_conversion_net-25.12-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 0b4586707a9f057271db288972066927b3c5aa3748c412a644e1bac216cb9e69
MD5 83c2ca121ca3150bafb741aa07fd9441
BLAKE2b-256 229425604c480786614b59687f1aa2ef6c4439016cd7255918a6e2e4fe48df4b

See more details on using hashes here.

File details

Details for the file groupdocs_conversion_net-25.12-py3-none-win32.whl.

File metadata

File hashes

Hashes for groupdocs_conversion_net-25.12-py3-none-win32.whl
Algorithm Hash digest
SHA256 111768a17ad2c374269c1bcf08c115fdc6c27a7d8d86286c9970fd277352a542
MD5 86f5ca0ae656c73fd85e9678902eac5b
BLAKE2b-256 a2211eb9ab40fa4da75a29018bf3564aa7701cd71f7f3e71a0babebe0508f9ac

See more details on using hashes here.

File details

Details for the file groupdocs_conversion_net-25.12-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for groupdocs_conversion_net-25.12-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5fbb3eed05d8793449f0132d48c9a6eeb532d215f6ee6a3ca35ad73861a8b3fc
MD5 c521b1af051622d65b071abfa3e72e38
BLAKE2b-256 f05f496662716457c51b6852593d272c438c57bcf3fd3d2998586a5f52ce32e1

See more details on using hashes here.

File details

Details for the file groupdocs_conversion_net-25.12-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for groupdocs_conversion_net-25.12-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad0d498c37a16e0792ca2296740013d233a312e903c63aaeb020561e05752f90
MD5 f03431a004d2a2fe04a13f2681b67b62
BLAKE2b-256 a47cf4b99534a15c3da6916024d9dc797139a962d01a934a2dc3e9850e78332b

See more details on using hashes here.

File details

Details for the file groupdocs_conversion_net-25.12-py3-none-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for groupdocs_conversion_net-25.12-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 13cf661e93fed695065530d6dcae06ead7054bbf2fb92bab06336dc021b10e3a
MD5 4dd1307b5453b817bf1dac615b40e5c1
BLAKE2b-256 3b89a5e59cb6368b86676421c493dfdd3c6b7556af734b7edb847adc5f33fc23

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page