We’re happy to announce the release of GroupDocs.Editor for Python v26.5, available as of May 2026. This is the first public release of GroupDocs.Editor for Python via .NET, shipped as a self‑contained Python wheel on PyPI. It brings the full document‑editing capabilities of the underlying .NET library to Python: load a document, convert it to clean, editable HTML/CSS, edit that markup programmatically or in any WYSIWYG editor, then save it back to the original format — or convert it to another — with a single pip install and no MS Office, OpenOffice, or separate .NET runtime required.
このリリースの新機能
- [New feature] HTML ラウンドトリップ編集 (EDTPY-1)
- [New feature] Pythonic API 表面、auto‑mapped 命名規則 (EDTPY-2)
- [New feature] Word 処理、スプレッドシート、プレゼンテーション、PDF、メール、eBook、テキスト/マークアップ形式を横断するマルチフォーマットサポート (EDTPY-3)
- [New feature] HTML 中間体を利用したフォーマット変換 (EDTPY-4)
- [New feature] ページングと語彙メタデータ切替を伴う細粒度編集(ワークシート/スライド/ページ範囲) (EDTPY-5)
- [New feature] リソース抽出(画像、フォント、CSS、オーディオ)とフォルダー永続化 (EDTPY-6)
- [New feature]
get_document_info()によるドキュメント内省 (EDTPY-7) - [New feature]
editor.form_field_managerを介したフォームフィールドの検査・更新 (EDTPY-8) - [New feature] ストリーム読み込みと deterministic な破棄を実現するコンテキストマネージャプロトコル (EDTPY-9)
- [New feature] AI エージェント & LLM フレンドリー:同梱
AGENTS.md、MCP サーバ、機械可読ドキュメント (EDTPY-10)
パブリック API の変更
.NET の全 API が Python ネイティブな命名で公開されます。クラスは PascalCase、メソッド・プロパティは snake_case(基になる .NET の PascalCase に自動マッピング)、列挙型の値は UPPER_SNAKE_CASE です。
クラス
Editor— エントリーポイント;パスまたはストリームでオープンし、edit()、save()、get_document_info()、form_field_managerを提供EditableDocument— HTML/CSS 表現;get_content()、get_body_content()、get_embedded_html()、get_css_content()、save()、リソースコレクション(images、fonts、css、audio、all_resources)を持ち、from_markup()/from_markup_and_resource_folder()/from_file()ファクトリを提供FormFieldManager— Word 処理用フォームフィールドの読み取りと更新License、Metered— ライセンス API
オプション
- Load:
WordProcessingLoadOptions、SpreadsheetLoadOptions、PresentationLoadOptions、PdfLoadOptions - Edit:
WordProcessingEditOptions、SpreadsheetEditOptions、PresentationEditOptions、PdfEditOptions、EbookEditOptions、EmailEditOptions、MarkdownEditOptions、TextEditOptions、XmlEditOptions、DelimitedTextEditOptions - Save:
WordProcessingSaveOptions、SpreadsheetSaveOptions、PresentationSaveOptions、PdfSaveOptions、HtmlSaveOptions、MhtmlSaveOptions、MarkdownSaveOptions、XpsSaveOptions、TextSaveOptions、EbookSaveOptions、EmailSaveOptions、DelimitedTextSaveOptions
列挙型
WordProcessingFormats、SpreadsheetFormats、PresentationFormats、FixedLayoutFormats、EBookFormats、EmailFormats、TextualFormats、FontExtractionOptions、FontEmbeddingOptions
例外
PasswordRequiredException、IncorrectPasswordException、EncryptedException、InvalidFormatException
新機能
HTML ラウンドトリップ編集
サポートされている任意のドキュメントを編集可能な HTML/CSS に変換し、忠実度を失うことなく元の形式に戻すことができます — これが GroupDocs.Editor のコアワークフローです。HTML はプログラムからでも、CKEditor や TinyMCE などのサードパーティ WYSIWYG エディタでも編集可能です。
Pythonic API 表面
.NET の全 API が Python ネイティブな命名で公開されます。クラスは PascalCase、メソッド・プロパティは snake_case(基になる .NET の PascalCase に自動マッピング)、列挙型の値は UPPER_SNAKE_CASE です。
マルチフォーマットサポート
Word 処理、スプレッドシート、プレゼンテーション、PDF、メール、eBook、テキスト/マークアップ形式を横断する統一 API を提供します。
HTML を介したフォーマット変換
別途 “convert” 呼び出しは不要です — EditableDocument を別の *SaveOptions で保存すると、HTML 中間体を経由して自動的に変換されます。入力は同じでも出力は変えられます。
細粒度編集
ブックの単一ワークシート、デッキの単一スライド、またはページ範囲だけを編集でき、ページングや言語メタデータの切替も可能です。
リソース抽出
EditableDocument は抽出された画像、フォント、CSS、オーディオをイテラブルコレクションとして公開し、HTML とすべてのリソースをフォルダーに永続化できます。
ドキュメント内省
フル編集パスを実行せずに、フォーマット、ページ数、サイズ、暗号化状態などを取得できます。
フォームフィールド
editor.form_field_manager を通じて Word 処理用フォームフィールドを検査・更新できます。
ストリームとコンテキストマネージャ
任意のバイナリストリームからロードし、コンテキストマネージャプロトコルによりネイティブドキュメントハンドルの deterministic な破棄を保証します。
AI エージェント & LLM フレンドリー
AGENTS.mdがインストールされた wheel に同梱 — Claude Code、Cursor、GitHub Copilot が API 表面、使用パターン、トラブルシューティングヒントを自動検出- MCP サーバ — AI ツールを
https://docs.groupdocs.com/mcpにポイントすればオンデマンドでドキュメント参照が可能 - 機械可読ドキュメント は
https://docs.groupdocs.com/editor/python-net/llms-full.txtにあり、RAG や LLM コンテキストで利用可能
コード例
from groupdocs.editor import Editor, EditableDocument
from groupdocs.editor.formats import WordProcessingFormats
from groupdocs.editor.options import WordProcessingSaveOptions
with Editor("document.docx") as editor:
editable = editor.edit() # document -> editable HTML
html = editable.get_embedded_html()
edited = EditableDocument.from_markup(html.replace("Hello", "Goodbye"))
editor.save(edited, "document.docx", WordProcessingSaveOptions(WordProcessingFormats.DOCX))
アップデートの取得方法
PyPI
以下でインストールまたはアップグレードしてください:
pip install groupdocs-editor-net
直接ダウンロード
GroupDocs.Editor for Python via .NET 26.5 ページから wheel をダウンロードできます。