Aspose.Words for Python は、さまざまなドキュメント処理タスクに使用できる強力なオンプレミス クラス ライブラリです。これにより、開発者は、Microsoft Word や Office Automation などのサードパーティ アプリケーションに依存せずに、ドキュメントの生成、変更、変換、レンダリングなどの機能を使用して独自のアプリケーションを強化できます。
このリポジトリには、API 機能の学習と探索に役立つ Python サンプルのコレクションが含まれています。
Aspose.Words for Python の一般的な機能の一部を以下に示します。
最も人気のある Aspose.Words 機能の一部をデモする無料のオンライン アプリをお試しください。
Aspose.Words for Python は、ドキュメントの読み込みと保存のための幅広い形式をサポートしており、その一部を以下に示します。
Microsoft Word: DOC、DOT、DOCX、DOTX、DOTM、FlatOpc、FlatOpcMacroEnabled、FlatOpcTemplate、FlatOpcTemplateMacroEnabled、RTF、WordML、DocPreWord60
オープンドキュメント: ODT、OTT
ウェブ: HTML、MHTML
マークダウン: MD
マークアップ: XamlFixed、HtmlFixed、XamlFlow、XamlFlowPack
固定レイアウト: PDF、XPS、OpenXps
画像: SVG、TIFF、PNG、BMP、JPEG、GIF
メタファイル: EMF
プリンター: PCL、PS
テキスト: TXT
電子ブック: MOBI、CHM、EPUB
Aspose.Words for Python は、Python 3.5 以降がインストールされている Windows や Linux など、幅広いオペレーティング システム用のアプリケーションを開発するために使用できます。 32 ビットと 64 ビットの両方の Python アプリケーションを構築できます。
Aspose.Words for Python を試してみませんか?
コンソールからpip install aspose-words
実行してパッケージを取得するだけです。 Aspose.Words for Python をすでにお持ちで、バージョンをアップグレードしたい場合は、 pip install --upgrade aspose-words
を実行して最新バージョンを入手してください。
ご使用の環境で次のスニペットを実行して Aspose.Words がどのように機能するかを確認したり、他の一般的な使用例については例または Aspose.Words for Python ドキュメントを確認したりできます。
Aspose.Words for Python を使用すると、新しい空のドキュメントを作成し、このドキュメントにコンテンツを追加できます。
import aspose . words as aw
# Create a blank document.
doc = aw . Document ()
# Use a document builder to add content to the document.
builder = aw . DocumentBuilder ( doc )
# Write a new paragraph in the document with the text "Hello World!".
builder . writeln ( "Hello World!" )
# Save the document in DOCX format. Save format is automatically determined from the file extension.
doc . save ( "output.docx" )
Aspose.Words for Python を使用すると、Microsoft Word 形式を PDF、XPS、Markdown、HTML、JPEG、TIFF、およびその他のファイル形式に変換することもできます。次のスニペットは、DOCX から HTML への変換を示しています。
import aspose . words as aw
# Load the document from the disc.
doc = aw . Document ( "TestDocument.docx" )
# Save the document to HTML format.
doc . save ( "output.html" )
さらに、Microsoft Word をインストールしなくても、PDF ドキュメントを Python アプリケーションにインポートし、DOCX 形式ファイルとしてエクスポートできます。
import aspose . words as aw
# Load the PDF document from the disc.
doc = aw . Document ( "TestDocument.pdf" )
# Save the document to DOCX format.
doc . save ( "output.docx" )
Dockerfile には、.Net 経由で Aspose.Words for Python を使用できるようにする Linux イメージを構成するためのコマンドが含まれています。
製品ページ |ドキュメント |デモ |例 |ブログ |検索 |無料サポート |仮免許