GroupDocs.Editor for Java API は、Microsoft Word、Excel、PowerPoint、Open Office ドキュメントおよびプレゼンテーションを編集するための正しい選択です。 GroupDocs.Editor は、高いパフォーマンスが要求されるサーバー サイドおよびバックエンド システムに適したスタンドアロン API です。 Microsoft や Open Office などのソフトウェアには依存しません。
GroupDocs.Editor for Java は、開発者が数行のコードを使用して AZW3 ファイルを編集する簡単で直接的な方法を提供します。
Editor
クラスのインスタンスを作成し、AZW3 ファイルをロードしますEbookEditOptions
クラス インスタンスを作成して設定しますEditor.Edit()
メソッドを呼び出して、WYSIWYG エディタで簡単に編集できる HTML 形式の AZW3 ドキュメントを取得します。Editor.Save()
メソッドを呼び出し、EpubSaveOptions
または Azw3SaveOptions
クラスを使用して編集済みの AZW3 ファイルを保存し、それぞれ ePub または AZW3 形式に保存しますGroupDocs.Editor for Java API を使用した基本的なドキュメント編集は、いくつかの簡単な手順を実装することで実行できます。当社の API は、すべての主要なプラットフォームとオペレーティング システムでサポートされています。以下のコードを実行する前に、システムに次の前提条件がインストールされていることを確認してください。
// Load the AZW3 file into Editor
Editor editor = new Editor("source.azw3");
// Create and adjust the edit options, common for all e-book formats, including AZW3
EbookEditOptions editOptions = new EbookEditOptions();
// Open input AZW3 document for edit — obtain an intermediate document, that can be edited
EditableDocument beforeEdit = editor.edit(editOptions);
// Grab AZW3 document content and associated resources from editable document
string content = beforeEdit.getEmbeddedHtml();
// Send the content to WYSIWYG-editor, edit it there, and send edited content back to the server-side
// This step simulates a such operation
string updatedContent = content.replace("Adventure", "Edited Adventure");
// Grab edited content and resources from WYSIWYG-editor and create a new EditableDocument instance from it
EditableDocument afterEdit = EditableDocument.fromMarkup(updatedContent, null);
// Create and adjust the save options, separate for every e-book format
EpubSaveOptions epubSaveOptions = new EpubSaveOptions();//for ePub
Azw3SaveOptions azw3SaveOptions = new Azw3SaveOptions();//for AZW3
// Save edited AZW3 document to the ePub format
editor.save(afterEdit, outputPath, epubSaveOptions);
// Save edited AZW3 document to the AZW3 format
editor.save(afterEdit, outputPath, azw3SaveOptions);
GroupDocs.Editor Live Demos Web サイトにアクセスして、今すぐ AZW3 を編集してください。 ライブデモには次の利点があります
APIをダウンロードする必要はありません
コードを書く必要はありません
ソースファイルをアップロードするだけです
ファイルを保存するためのダウンロードリンクを取得する
他のファイル形式を編集することもできます。以下の完全なリストをご覧ください。
(Microsoft Word Binary Format)
(Office 2007+ Word Document)
(Microsoft Word 2007 Marco File)
(Microsoft Word Template File )
(Microsoft Excel Spreadsheet (Legacy))
(Open XML Workbook)
(Macro-enabled Spreadsheet)
(Microsoft PowerPoint 97-2003)
(Open XML presentation Format)
(Macro-enabled Presentation File)
(Open Ebook Format)
(Open eBook File)
(Hyper Text Markup Language)
(Web Page Archive Format)
(Text Document)
(XML File)
(Comma Seperated Values)
(Rich Text Format)
(OpenDocument Text File Format)
(Outlook Message Item File)