GroupDocs.Editor for Java API انتخاب مناسبی برای ویرایش اسناد و ارائههای Microsoft Word، Excel، PowerPoint، Open Office است. GroupDocs.Editor یک API مستقل است که برای سیستمهای سمت سرور و سیستمهای بکاند که در آن به کارایی بالا نیاز است، مناسب است. به هیچ نرم افزاری مانند Microsoft یا Open Office بستگی ندارد.
GroupDocs.Editor for Java روشی آسان و ساده را برای توسعه دهندگان فراهم میکند تا فایلهای AZW3 را با استفاده از چند خط کد ویرایش کنند.
یک ویرایش اولیه سند با APIهای GroupDocs.Editor for Java را می توان با اجرای چند مرحله آسان انجام داد. 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);
AZW3 را همین الان با بازدید از وب سایت GroupDocs.Editor Live Demos ویرایش کنید. نسخه ی نمایشی زنده دارای مزایای زیر است
نیازی به بارگیری 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)