If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.

Installation
Das Paket ist verfügbar bei PyPI und kann über pip mit folgendem Befehl installiert werden:
pip install groupdocs-conversion-cloud

Anforderungen
Abhängigkeiten
Das SDK installiert automatisch die folgenden Pakete:
| Package | Constraint |
|---|
| urllib3 | >= 1.15 |
| six | >= 1.10 |
| certifi | — |
| python-dateutil | — |
Schnellstart
Um GroupDocs.Conversion Cloud zu verwenden, registrieren Sie sich im GroupDocs.Cloud Dashboard und holen Sie sich Ihre Client ID und Client Secret.
API initialisieren
Verwenden Sie den folgenden Code, um mit dem GroupDocs.Conversion Cloud SDK für Python zu beginnen:
import groupdocs_conversion_cloud
# Get your ClientId and ClientSecret at https://dashboard.groupdocs.cloud
client_id = "YourClientId"
client_secret = "YourClientSecret"
# Create API configuration
configuration = groupdocs_conversion_cloud.Configuration(client_id, client_secret)
configuration.api_base_url = "https://api.groupdocs.cloud"
# Create instance of the Convert API
convert_api = groupdocs_conversion_cloud.ConvertApi.from_config(configuration)
Dokument konvertieren (direkt, ohne Cloud-Speicher)
Nach der Initialisierung können Sie mit diesem einfachen Beispiel ein lokales Dokument konvertieren und das Ergebnis direkt erhalten:
import groupdocs_conversion_cloud
client_id = "YourClientId"
client_secret = "YourClientSecret"
# Create instance of the API
convert_api = groupdocs_conversion_cloud.ConvertApi.from_keys(client_id, client_secret)
# Prepare request: output format and local file path
request = groupdocs_conversion_cloud.ConvertDocumentDirectRequest("pdf", "input.docx")
# Convert and save the result
result = convert_api.convert_document_direct(request)
with open("output.pdf", "wb") as f:
f.write(result)
Mit dieser Schnellstartanleitung sind Sie bereit, Dokumente mit GroupDocs.Conversion Cloud in Ihren Python-Anwendungen zu konvertieren. Weitere Details finden Sie in der Dokumentation.
Dokumente mit Cloud-Speicher konvertieren
Dieses Beispiel lädt eine Datei in den GroupDocs Cloud-Speicher hoch, konvertiert sie und lädt das Ergebnis herunter — ideal für serverseitige Workflows, die Dateien in der Cloud verwalten.
import groupdocs_conversion_cloud
client_id = "YourClientId"
client_secret = "YourClientSecret"
# Create instances of the APIs
file_api = groupdocs_conversion_cloud.FileApi.from_keys(client_id, client_secret)
convert_api = groupdocs_conversion_cloud.ConvertApi.from_keys(client_id, client_secret)
# Upload file to cloud storage
file_api.upload_file(
groupdocs_conversion_cloud.UploadFileRequest("myFile.docx", "myFile.docx")
)
# Prepare convert settings
settings = groupdocs_conversion_cloud.ConvertSettings()
settings.file_path = "myFile.docx"
settings.format = "pdf"
settings.output_path = "converted"
# Convert the document
result = convert_api.convert_document(
groupdocs_conversion_cloud.ConvertDocumentRequest(settings)
)
print("Document converted: " + result[0].url)
# Download the converted file
response = file_api.download_file(
groupdocs_conversion_cloud.DownloadFileRequest("converted/myFile.pdf", None)
)
Mit diesem Code können Entwickler Dokumente programmgesteuert zwischen verschiedenen Formaten mit erweiterten PDF-Ausgabeoptionen konvertieren und manuelle Konvertierungen vermeiden. Es unterstützt über 50 Dateiformate und eignet sich ideal für Anwendungsentwickler, die Multi-Format-Unterstützung benötigen.
import groupdocs_conversion_cloud
configuration = groupdocs_conversion_cloud.Configuration("YourClientId", "YourClientSecret")
convert_api = groupdocs_conversion_cloud.ConvertApi.from_config(configuration)
# Prepare convert settings
settings = groupdocs_conversion_cloud.ConvertSettings()
settings.file_path = "WordProcessing/password-protected.docx"
settings.format = "pdf"
settings.output_path = "converted"
# Load options for password-protected source document
load_options = groupdocs_conversion_cloud.WordProcessingLoadOptions()
load_options.password = "password"
# PDF conversion options
convert_options = groupdocs_conversion_cloud.PdfConvertOptions()
convert_options.center_window = True
convert_options.compress_images = False
convert_options.display_doc_title = True
convert_options.dpi = 1024
convert_options.from_page = 1
convert_options.image_quality = 100
convert_options.password = "password"
convert_options.unembed_fonts = True
settings.load_options = load_options
settings.convert_options = convert_options
# Execute the conversion
result = convert_api.convert_document(
groupdocs_conversion_cloud.ConvertDocumentRequest(settings)
)
print("Document converted: " + result[0].url)
Bestimmte Seiten eines Dokuments konvertieren Cloud API
Dieses Beispiel zeigt, wie Entwickler nur bestimmte Seiten konvertieren können, wodurch Verarbeitungszeit gespart und Dateigrößen reduziert werden, wenn nur ein Teil des Dokuments benötigt wird.
import groupdocs_conversion_cloud
convert_api = groupdocs_conversion_cloud.ConvertApi.from_keys("YourClientId", "YourClientSecret")
# Configure settings to convert specific pages (e.g., pages 1 and 3)
settings = groupdocs_conversion_cloud.ConvertSettings()
settings.file_path = "WordProcessing/four-pages.docx"
settings.format = "pdf"
settings.output_path = "converted/two-pages.pdf"
convert_options = groupdocs_conversion_cloud.PdfConvertOptions()
convert_options.pages = [1, 3]
settings.convert_options = convert_options
# Execute the conversion
result = convert_api.convert_document(
groupdocs_conversion_cloud.ConvertDocumentRequest(settings)
)
print("Document converted: " + result[0].url)
Rufen Sie die vollständige Liste der über die API verfügbaren unterstützten Quell-zu-Ziel-Formatkonvertierungen ab.
import groupdocs_conversion_cloud
info_api = groupdocs_conversion_cloud.InfoApi.from_keys("YourClientId", "YourClientSecret")
result = info_api.get_supported_conversion_types(
groupdocs_conversion_cloud.GetSupportedConversionTypesRequest()
)
print("Formats count: " + str(len(result)))
Beispielprojekte auf GitHub
Das Repository GroupDocs.Conversion Cloud Python Samples enthält sofort ausführbare Beispiele für:
| Category | Examples |
|---|
| Convert | PDF, HTML, Bild, Präsentation, Tabellenkalkulation, Textverarbeitung; direkte Konvertierung; asynchrone Konvertierung |
| Common Options | Wasserzeichen, bestimmte Seiten, aufeinanderfolgende Seiten, benutzerdefinierte Schriftarten |
| Load Options | CAD, CSV, E-Mail, HTML, OneNote, PDF, Präsentation, Tabellenkalkulation, Text, Textverarbeitung |
| Info | Unterstützte Konvertierungen, Dokumentinformationen |
Beispiele ausführen
- Klonen oder laden Sie das Beispiel-Repository herunter
- Bearbeiten Sie
Examples/Common.py und setzen Sie Ihre client_id und client_secret - Wechseln Sie in das Verzeichnis
Examples - Führen Sie
pip install groupdocs-conversion-cloud -U aus - Führen Sie
python RunExamples.py aus
Für weitere Details besuchen Sie Getting Started.

Document Conversion API | Python Cloud API | GroupDocs.Conversion Cloud | REST API | Document Conversion | Auto-detect Formats | Watermarking API | Multi-Format Output | Batch Document Conversion | PDF Conversion | Custom Conversion Options | Page-by-Page Conversion | Font Replacement | OCR Support | Metadata Extraction | Document Merge | Storage API | Document Information API | Document Load Options | Multi-Language Support | Cloud Storage Integration | SDKs for .NET, Java, Python | Secure API Access | Docker Support | Scalable Document Conversion | API Rate Limiting