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.

インストール
パッケージは、availablePyPI にあり、経由でインストールできますpip次のコマンドを実行します。
pip install groupdocs-editor-cloud

要件
依存関係
SDK は次のパッケージを自動的にインストールします。
| パッケージ | 制約 |
|---|
| urllib3 | >= 1.15 |
| six | >= 1.10 |
| certifi | — |
| python-dateutil | — |
REST 経由でクラウドで 40 以上のドキュメント形式を編集
GroupDocs.Editor Cloud SDK for Pythonは、ドキュメント編集機能を Python Web アプリ、スクリプト、自動化ワークフローに統合するように設計された REST API です。 40 を超えるファイル形式をサポートするこの API を使用すると、MS Office などのサードパーティ ソフトウェアを必要とせずに、Word ドキュメント、スプレッドシート、プレゼンテーションなどをクラウドから直接簡単に編集できます。機能には、パスワードで保護されたファイルの処理、多言語サポート、カスタマイズ可能な書式設定オプションが含まれます。開発者は、Web、デスクトップ、モバイル プラットフォーム全体でドキュメントの読み込み、編集、保存などのファイル操作を簡単に実行できます。
ワープロ文書の編集
サポートされている形式 - DOC、DOCX、DOCM、DOT、DOTM、DOTX、ODT、OTT、RTF など。
クラウド ストレージ ワークフロー - Word 処理ドキュメントをクラウド ストレージから直接アップロード、編集、保存します。
パスワードで保護されたドキュメント - ロードおよび保存中にパスワードで保護された Word ドキュメントを処理します。
読み込みオプション - ページネーションを有効にし、フォントを抽出し、多言語情報を処理します。
スプレッドシートドキュメントの編集
サポートされている形式 - XLS、XLSX、XLSM、XLSB、ODS、CSV、TSV など。
ワークシートの選択 - スプレッドシートを編集可能な HTML にロードし、特定のワークシートで作業します。
非表示のワークシート - 必要に応じて、非表示のワークシートを編集から除外します。
パスワード保護 - パスワードで保護されたスプレッドシート ドキュメントを処理します。
プレゼンテーション文書の編集
サポートされている形式 - PPT、PPTX、PPTM、PPSX、POTX、ODP、OTP など。
スライドの選択 - 編集のためにプレゼンテーションから特定のスライドを読み込みます。
非表示のスライド - 編集プロセス中に非表示のスライドを含めるか除外します。
テキストドキュメントの編集
プレーン テキストのサポート - TXT ファイルを処理し、リストやインデントなどの単純な構造を認識します。
Word 形式に保存 - 必要に応じて、編集した TXT ファイルを Word 処理形式に保存します。
書式設定オプション - 先頭と末尾のスペースを制御し、出力 HTML でのページネーションを有効にします。
区切り文字区切り値 (DSV) ドキュメントの編集
カスタム区切り文字 - CSV、TSV、およびカスタム区切り文字を含むファイルをサポートします。
データ変換 - カスタム区切り文字を指定し、日付/数値データ変換を処理します。
連続区切り文字 - 連続区切り文字を 1 つのエンティティとして扱うオプション。
文書情報の取得
ファイルの詳細 - ファイル拡張子、文書サイズ、ページ数、パスワード保護ステータスを取得します。
サポートされている形式情報 - API から編集可能なファイル タイプの完全なリストを取得します。
ファイルとストレージの操作
ファイルをダウンロード - API 経由でクラウド ストレージからファイルをダウンロードします。
ファイル バージョン - バージョン管理をサポートするストレージ システムから特定のファイル バージョンを取得します。
ストレージ チェック - クラウド ストレージの存在を確認し、フォルダー内のファイルを一覧表示します。
ライセンスと認証
評価モード - 無料試用アカウントで API を試してください。
安全な認証 - 安全な API アクセスにはクライアント ID とクライアント シークレットを使用します。
MIT ライセンス - Python SDK は、以下に基づいてライセンスされています。MIT License.
サポートされているドキュメント形式
GroupDocs.Editor Cloud は、編集機能と自動検出機能を備えた 40 以上のファイル形式をサポートしています。
- ワードプロセッサ: DOC、DOCX、DOCM、DOT、DOTM、DOTX、ODT、OTT、RTF、FlatOPC、WordML
- スプレッドシート: XLS、XLT、XLSX、XLSM、XLTX、XLTM、XLSB、XLAM、ODS、FODS、DIF、CSV、TSV、DSV
- プレゼンテーション: PPT、PPTX、PPTM、PPS、PPSX、PPSM、POT、POTX、POTM、ODP、OTP
- その他: TXT、HTML、XML
サポートされる操作は形式によって異なります。完全な形式マトリックスについては、documentation.
クイックスタート
API 認証情報を取得する
GroupDocs.Editor Cloud を使用するには、次の URL でサインアップしてください。GroupDocs.Cloud Dashboardクライアント ID と クライアント シークレット を取得します。
API を初期化する
GroupDocs.Editor Cloud SDK for Python の使用を開始するには、次のコードを使用します。
import groupdocs_editor_cloud
# Get your ClientId and ClientSecret at https://dashboard.groupdocs.cloud
client_id = "YourClientId"
client_secret = "YourClientSecret"
# Create API configuration
configuration = groupdocs_editor_cloud.Configuration(client_id, client_secret)
configuration.api_base_url = "https://api.groupdocs.cloud"
# Create instance of the Edit API
edit_api = groupdocs_editor_cloud.EditApi.from_config(configuration)
Word 文書を編集する
初期化したら、次の基本的な例を使用して DOCX ファイルをロードし、その HTML 表現を編集し、結果を保存します。
import groupdocs_editor_cloud
edit_api = groupdocs_editor_cloud.EditApi.from_keys("YourClientId", "YourClientSecret")
file_api = groupdocs_editor_cloud.FileApi.from_keys("YourClientId", "YourClientSecret")
file_info = groupdocs_editor_cloud.FileInfo("WordProcessing/password-protected.docx", None, None, "password")
load_options = groupdocs_editor_cloud.WordProcessingLoadOptions()
load_options.file_info = file_info
load_options.output_path = "output"
load_result = edit_api.load(groupdocs_editor_cloud.LoadRequest(load_options))
html_file = file_api.download_file(groupdocs_editor_cloud.DownloadFileRequest(load_result.html_path))
with open(html_file, "r") as file:
html = file.read()
html = html.replace("Sample test text", "Hello world")
with open(html_file, "w") as file:
file.write(html)
file_api.upload_file(groupdocs_editor_cloud.UploadFileRequest(load_result.html_path, html_file))
save_options = groupdocs_editor_cloud.WordProcessingSaveOptions()
save_options.file_info = file_info
save_options.output_path = "output/edited.docx"
save_options.html_path = load_result.html_path
save_options.resources_path = load_result.resources_path
save_result = edit_api.save(groupdocs_editor_cloud.SaveRequest(save_options))
print("Document edited: " + save_result.path)
このクイック スタート ガイドを読めば、Python アプリケーションで GroupDocs.Editor Cloud を使用してドキュメントの編集を始めることができます。詳細については、次のサイトを参照してください。documentation.
サポートされているファイル タイプを取得する
Editor API を通じて利用できるサポートされているファイル形式の完全なリストを取得します。
import groupdocs_editor_cloud
info_api = groupdocs_editor_cloud.InfoApi.from_keys("YourClientId", "YourClientSecret")
result = info_api.get_supported_file_formats()
for fmt in result.formats:
print(fmt.file_format)
ドキュメント情報の取得
ページ数やパスワード保護ステータスなどのドキュメントのメタデータを取得します。
import groupdocs_editor_cloud
info_api = groupdocs_editor_cloud.InfoApi.from_keys("YourClientId", "YourClientSecret")
file_info = groupdocs_editor_cloud.FileInfo("WordProcessing/password-protected.docx", None, None, "password")
result = info_api.get_info(groupdocs_editor_cloud.GetInfoRequest(file_info))
print("Page count = " + str(result.page_count))
スプレッドシートドキュメントを編集する
XLSX ファイルから特定のワークシートをロードし、その HTML コンテンツを編集して、スプレッドシート形式で保存し直します。
import groupdocs_editor_cloud
edit_api = groupdocs_editor_cloud.EditApi.from_keys("YourClientId", "YourClientSecret")
file_api = groupdocs_editor_cloud.FileApi.from_keys("YourClientId", "YourClientSecret")
file_info = groupdocs_editor_cloud.FileInfo("Spreadsheet/four-sheets.xlsx")
load_options = groupdocs_editor_cloud.SpreadsheetLoadOptions()
load_options.file_info = file_info
load_options.output_path = "output"
load_options.worksheet_index = 0
load_result = edit_api.load(groupdocs_editor_cloud.LoadRequest(load_options))
html_file = file_api.download_file(groupdocs_editor_cloud.DownloadFileRequest(load_result.html_path))
with open(html_file, "r") as file:
html = file.read()
html = html.replace("This is sample sheet", "This is sample sheep")
with open(html_file, "w") as file:
file.write(html)
file_api.upload_file(groupdocs_editor_cloud.UploadFileRequest(load_result.html_path, html_file))
save_options = groupdocs_editor_cloud.SpreadsheetSaveOptions()
save_options.file_info = file_info
save_options.output_path = "output/edited.xlsx"
save_options.html_path = load_result.html_path
save_options.resources_path = load_result.resources_path
save_result = edit_api.save(groupdocs_editor_cloud.SaveRequest(save_options))
print("Document edited: " + save_result.path)
プレゼンテーション文書を編集する
PPTX ファイルから特定のスライドをロードし、その HTML コンテンツを編集して、プレゼンテーション形式に保存し直します。
import groupdocs_editor_cloud
edit_api = groupdocs_editor_cloud.EditApi.from_keys("YourClientId", "YourClientSecret")
file_api = groupdocs_editor_cloud.FileApi.from_keys("YourClientId", "YourClientSecret")
file_info = groupdocs_editor_cloud.FileInfo("Presentation/with-notes.pptx")
load_options = groupdocs_editor_cloud.PresentationLoadOptions()
load_options.file_info = file_info
load_options.output_path = "output"
load_options.slide_number = 0
load_result = edit_api.load(groupdocs_editor_cloud.LoadRequest(load_options))
html_file = file_api.download_file(groupdocs_editor_cloud.DownloadFileRequest(load_result.html_path))
with open(html_file, "r") as file:
html = file.read()
html = html.replace("Slide sub-heading", "Hello world!")
with open(html_file, "w") as file:
file.write(html)
file_api.upload_file(groupdocs_editor_cloud.UploadFileRequest(load_result.html_path, html_file))
save_options = groupdocs_editor_cloud.PresentationSaveOptions()
save_options.file_info = file_info
save_options.output_path = "output/edited.pptx"
save_options.html_path = load_result.html_path
save_options.resources_path = load_result.resources_path
save_result = edit_api.save(groupdocs_editor_cloud.SaveRequest(save_options))
print("Document edited: " + save_result.path)
DSV ドキュメントを編集する
区切り文字で区切られた値ファイルをロードし、その HTML 表現を編集して、TSV 形式で保存し直します。
import groupdocs_editor_cloud
edit_api = groupdocs_editor_cloud.EditApi.from_keys("YourClientId", "YourClientSecret")
file_api = groupdocs_editor_cloud.FileApi.from_keys("YourClientId", "YourClientSecret")
file_info = groupdocs_editor_cloud.FileInfo("Spreadsheet/sample.tsv")
load_options = groupdocs_editor_cloud.DelimitedTextLoadOptions()
load_options.file_info = file_info
load_options.output_path = "output"
load_result = edit_api.load(groupdocs_editor_cloud.LoadRequest(load_options))
html_file = file_api.download_file(groupdocs_editor_cloud.DownloadFileRequest(load_result.html_path))
with open(html_file, "r") as file:
html = file.read()
html = html.replace("32", "66")
with open(html_file, "w") as file:
file.write(html)
file_api.upload_file(groupdocs_editor_cloud.UploadFileRequest(load_result.html_path, html_file))
save_options = groupdocs_editor_cloud.DelimitedTextSaveOptions()
save_options.file_info = file_info
save_options.output_path = "output/edited.tsv"
save_options.html_path = load_result.html_path
save_options.resources_path = load_result.resources_path
save_result = edit_api.save(groupdocs_editor_cloud.SaveRequest(save_options))
print("Document edited: " + save_result.path)
テキストドキュメントを編集する
プレーン テキスト ファイルをロードし、その HTML 表現を編集して、結果を保存します。
import groupdocs_editor_cloud
edit_api = groupdocs_editor_cloud.EditApi.from_keys("YourClientId", "YourClientSecret")
file_api = groupdocs_editor_cloud.FileApi.from_keys("YourClientId", "YourClientSecret")
file_info = groupdocs_editor_cloud.FileInfo("Text/document.txt")
load_options = groupdocs_editor_cloud.TextLoadOptions()
load_options.file_info = file_info
load_options.output_path = "output"
load_result = edit_api.load(groupdocs_editor_cloud.LoadRequest(load_options))
html_file = file_api.download_file(groupdocs_editor_cloud.DownloadFileRequest(load_result.html_path))
with open(html_file, "r") as file:
html = file.read()
html = html.replace("Page Text", "New Text")
with open(html_file, "w") as file:
file.write(html)
file_api.upload_file(groupdocs_editor_cloud.UploadFileRequest(load_result.html_path, html_file))
save_options = groupdocs_editor_cloud.TextSaveOptions()
save_options.file_info = file_info
save_options.output_path = "output/edited.txt"
save_options.html_path = load_result.html_path
save_options.resources_path = load_result.resources_path
save_result = edit_api.save(groupdocs_editor_cloud.SaveRequest(save_options))
print("Document edited: " + save_result.path)
GitHub のサンプル プロジェクト
のGroupDocs.Editor Cloud Python Samplesリポジトリには、以下をカバーするすぐに実行できるサンプルが含まれています。
| カテゴリー | 例 |
|---|
| GetSupportedFileTypes | サポートされているファイルの種類 |
| 情報を得る | 文書情報(ページ数、パスワードの状態) |
| 編集操作 — Word | ワードプロセッサ文書の編集 (パスワードで保護された文書を含む) |
| EditOperations — スプレッドシート | ワークシートを選択してスプレッドシート文書を編集する |
| 編集操作 — プレゼンテーション | スライドを選択してプレゼンテーション文書を編集する |
| 編集オペレーション — DSV | 区切り文字で区切られた値ドキュメントの編集 (CSV、TSV) |
| 編集操作 — テキスト | プレーン テキスト ドキュメントを編集する |
サンプルの実行方法
- クローンを作成するか、ダウンロードします。samples repository2.編集
Examples/RunExamples.pyそしてあなたの設定をclient_idそしてclient_secret3. に移動します。Examplesディレクトリ - 走る
pip install groupdocs-editor-cloud -U5. 実行python RunExamples.py
詳細については、次のサイトをご覧ください。Getting Started.

タグ
Document Editing API | Python Cloud API | GroupDocs.Editor Cloud | REST API | Word Processing Formats | Spreadsheet Formats | Presentation Formats | Text Formats | CSV Files | DOCX Documents | XLSX Documents | PPTX Presentations | Password-Protected Files | Cloud Storage Integration | Document Info Retrieval | File Operations | WYSIWYG Editing | Multi-Platform Support | Secure API Access | HTML Editing | Cross-platform API