Convert Documents with Python Cloud SDK

Enrich your tools & applications with document and image conversion features using Python REST API.

Start Free Trial

The GroupDocs.Conversion Cloud SDK for Python has been developed to help you get started with our document conversion REST API, which lets you seamlessly convert your documents to any format you need. With this single API, you can convert back and forth between over 50 types of documents and images, including all Microsoft Office and OpenDocument file formats, PDF documents, HTML, CAD, raster images and many more.

Advanced Document Conversion API Features

Convert across all common formats

Convert page by page or custom range of pages

Watermark pages

Get high quality output files

Password protect output document

APIs are secured and require authentication

Quick and Reliable Document Conversion

GroupDocs.Conversion REST API has the capability to convert documents to any of the supported formats. Using the SDK for Python, we can perform similar tasks with just a few lines of code.

Convert Word Processing Document DOCX to HTML - Python

# Get your App SID and App Key at (free registration is required).

# Create instance of the API
api = groupdocs_conversion_cloud.ConversionApi.from_keys(app_sid, app_key)

settings = groupdocs_conversion_cloud.ConvertSettings()
settings.storage_name = "Storage Name"
settings.file_path = "document.docx"
settings.format = "html"

loadOptions = groupdocs_conversion_cloud.DocxLoadOptions()
loadOptions.password = "password"

settings.load_options = loadOptions;

convertOptions = groupdocs_conversion_cloud.HtmlConvertOptions()
convertOptions.fixed_layout = True
convertOptions.use_pdf = False

settings.convert_options = convertOptions
settings.output_path = "convertedDocs"

request = groupdocs_conversion_cloud.ConvertDocumentRequest(settings)
response = api.convert_document(request)

Get Started in No Time

GroupDocs.Conversion Cloud API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it hides the REST API calls and lets you use GroupDocs.Conversion Cloud API features in a native way for your preferred language.

Security and Authentication

The GroupDocs.Conversion Cloud API is secured and requires authentication. Users need to register at GroupDocs Cloud and get their app access key ID (appSID) and app secret access key. Authenticated requests require a signature and AppSID query parameters or OAuth 2.0 athrorization header.

Easy Customization

GroupDocs.Conversion Cloud SDK is 100% tested and out of the box running. The SDK is open source and has an MIT license. You can use it, and even customize it for absolutely free of charge.

Support and Learning Resources

GroupDocs.Conversion Cloud also offers individual document rendering SDKs for other popular languages as listed below: