GroupDocs.Conversion for Python via .NET 24.11 Release Notes

We’re glad to announce the initial release of GroupDocs.Conversion for Python via .NET. In this topic, you will find basic information about the product, along with resources that will help you get started and seamlessly integrate it into your solution.

Overview

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.

Key Features

  • Wide Format Support: Supports over 10,000 conversion pairs across popular formats like Microsoft Office, PDF, HTML, and more.
  • Flexible Conversion Options: Convert entire documents, specific pages, page ranges, or files within document containers such as compressed files.
  • Format Detection: Automatically detects the format of input files.

Supported File Formats

GroupDocs.Conversion supports a wide range of file formats, including Word, Excel, PowerPoint, PDF, OpenDocument, Image, Email, and many others. See the full list of supported formats for details.

System Requirements

  • Supported OS: Windows, macOS
  • Python Version: Python 3.9 or above
  • .NET Runtime Version: .NET 6.0 or above

Learn more about system requirements in the System Requirements documentation topic.

Installation Guide

Download a package for your operation system here and install it using pip:

pip install ./groupdocs_conversion_net-24.11-py3-none-*.whl

Learn more in the Installation documentation topic.

Code Examples

The following code examples demonstrate common use cases of GroupDocs.Conversion for Python via .NET. You can also find these code examples in the Quick Start Guide along with the attached input and output files.

For more detailed and specific code examples, visit our Developer Guide documentation section, where you can find examples on loading, reading document information, converting documents, and logging.

Example 1: Convert a Document to Another Format

This example demonstrates how to convert a DOCX file to a PDF.

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

if __name__ == "__main__":
    convert_document_to_another_format()

Example 2: Convert All Pages of a Document

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

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 
        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)    

if __name__ == "__main__":
    convert_all_document_pages()

Example 3: Convert Files Within a Document Container

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

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 
        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()

Additional Resources

Feedback

We value your feedback! If you have any questions, issues, or suggestions, feel free to reach out to us through our Free Support Forum. Our team will be happy to assist you and answer any questions you may have.