我們正在嚴格按照計劃為不同平台提供 GroupDocs.Viewer Cloud SDK,在這方面,我們很高興通知您另一個 SDK 版本,[GroupDocs.Viewer Cloud SDK for Python](https://products.groupdocs .雲/查看器)。此 SDK 提供了一個完整的解決方案,用於在 Python 中使用 GroupDocs.Viewer Cloud API 以在雲中無縫呈現受支持的文檔。 GroupDocs.Viewer Cloud 是 REST API,支持多種文檔格式,如 PDF、Words、電子表格、演示文稿、圖像、CAD 等。它允許以 HTML 或圖像形式呈現整個文檔、逐頁或自定義頁面範圍的受支持文檔。它提供了一些其他令人興奮的功能,例如水印、文檔轉換(旋轉、重新排序和字體資源)。請單擊 此處 了解更多詳細信息。GroupDocs.Viewer Cloud SDK for Python 的開發旨在幫助您將所有這些功能集成到您的應用程序中。基於Python的應用程序沒有任何麻煩。
適用於 Python 的 GroupDocs.Viewer Cloud SDK - 簡介
GroupDocs.Viewer Cloud SDK for Python 是為其 Python 開發人員推出的。它是 REST API 的包裝器,允許您在基於 Python 的平台中快速輕鬆地使用 GroupDocs.Viewer Cloud REST API,獲得強類型和 IDE 亮點的所有優勢。該發行版可在 GitHub 上獲取。
適用於 Python 的 GroupDocs.Viewer Cloud SDK - 示例
還提供了GroupDocs.Viewer Cloud SDK for Python示例來指導開發人員熟悉SDK及其使用方法,以使用GroupDocs.Viewer Cloud REST API調用資源和操作。請參見以下類別的SDK示例。
InstallationGroupDocs.Viewer
Cloud SDK for Python 也可以作為 PyPI(Python 包索引) 中的發布包提供。您可以繞過源代碼存儲庫並通過從 PyPI 安裝直接依賴已發布的包:
pip install groupdocs-viewer-cloud
數據
為了渲染任何支持的文件,您首先需要將它們上傳到 GroupDocs 雲存儲或第 3 方雲存儲以使用 GroupDocs.Viewer Cloud API。
入門
在項目中完成包和依賴項的安裝後,您可以輕鬆地在基於 Python 的代碼中調用 API 來使用 API 功能。以下是使用 Python SDK 演示 GroupDocs.Vewer Cloud API 工作原理的示例代碼。請按照安裝過程操作,然後運行以下Python代碼:
# Import module
import groupdocs_viewer_cloud
# Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required).
app_sid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
app_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
# Create instance of the API
api = groupdocs_viewer_cloud.ViewerApi.from_keys(app_sid, app_key)
try:
# Retrieve supported file-formats
response = api.get_supported_file_formats()
# Print out supported file-formats
print("Supported file-formats:")
for format in response.formats:
print('{0} ({1})'.format(format.file_format, format.extension))
except groupdocs_viewer_cloud.ApiException as e:
print("Exception when calling get_supported_file_formats: {0}".format(e.message))
GroupDocs.Viewer 雲資源
以下是完成任務可能需要的一些有用資源的鏈接。
- GroupDocs.Viewer 雲
- GroupDocs.Viewer雲在線文檔
- GroupDocs.Viewer 雲 UI 幫助主題
- GroupDocs.Viewer 雲論壇
- Web API Explorer(實例)
- GroupDocs.Viewer 雲 SDK
- 使用 Web GUI 使用 GroupDocs Cloud Storage
- 使用 Web GUI 處理 GroupDocs 使用情況和日誌
立即開始免費試用
立即開始免費試用 – 您只需註冊 GroupDocs 雲服務。註冊後,您就可以嘗試 GroupDocs Cloud 提供的強大文件處理功能。