EPUB öğesini Java içinde düzenleyin

Microsoft veya Open Office gibi herhangi bir yazılım kullanmadan Java API’leri için sunucu tarafı GroupDocs.Editor kullanarak etkili ve sağlam EPUB düzenleme.


Ücretsiz Deneme sürümünü indirin

GroupDocs.Editor for Java API'si hakkında

GroupDocs.Editor for Java API, Microsoft Word, Excel, PowerPoint, Open Office belgelerini ve sunumlarını düzenlemek için doğru bir seçimdir. GroupDocs.Editor, yüksek performansın gerekli olduğu sunucu tarafı ve arka uç sistemler için uygun bağımsız bir API’dir. Microsoft veya Open Office gibi herhangi bir yazılıma bağlı değildir.

Java içinde EPUB Düzenleme Adımları

GroupDocs.Editor for Java, geliştiricilerin birkaç satır kod kullanarak EPUB dosyalarını düzenlemeleri için kolay ve anlaşılır bir yol sağlar.

  • Zorunlu dosya yolu veya bayt akışıyla bir “Editör” sınıfı örneği oluşturun ve EPUB dosyasını yükleyin
  • EPUB dosya biçimi için “EbookEditOptions” sınıf örneğini oluşturun ve ayarlayın
  • Editor.Edit() yöntemini çağırın ve herhangi bir WYSIWYG editörüyle kolayca düzenlenebilen HTML formatında EPUB belgesini alın.
  • Editor.Save() yöntemini çağırın ve düzenlenmiş EPUB dosyasını sırasıyla ePub veya AZW3 formatlarına kaydetmek için EpubSaveOptions veya Azw3SaveOptions sınıfını kullanarak kaydedin

sistem gereksinimleri

GroupDocs.Editor for Java API’leriyle temel bir belge düzenlemesi, birkaç kolay adım uygulanarak yapılabilir. API’lerimiz tüm büyük platformlarda ve işletim sistemlerinde desteklenir. Aşağıdaki kodu çalıştırmadan önce lütfen aşağıdaki ön koşulların sisteminizde kurulu olduğundan emin olun.

  • İşletim Sistemleri: Microsoft Windows, Linux, MacOS
  • Geliştirme Ortamları: NetBeans, IntelliJ IDEA, Eclipse
  • çerçeveler: Java 7 (1.7) and above
  • Maven adresinden indirilen GroupDocs.Editor for Java ürününün en son sürümünü edinin

// Load the EPUB file into Editor
Editor editor = new Editor("source.epub");

// Create and adjust the edit options, common for all e-book formats, including EPUB
EbookEditOptions editOptions = new EbookEditOptions();

// Open input EPUB document for edit — obtain an intermediate document, that can be edited
EditableDocument beforeEdit = editor.edit(editOptions);

// Grab EPUB 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 EPUB document to the ePub format
editor.save(afterEdit, outputPath, epubSaveOptions);

// Save edited EPUB document to the AZW3 format
editor.save(afterEdit, outputPath, azw3SaveOptions);

EPUB Editör Canlı Demoları

EPUB dosyasını hemen GroupDocs.Editor Canlı Demoları web sitesini ziyaret ederek düzenleyin. Canlı demo aşağıdaki avantajlara sahiptir

API'yi indirmeye gerek yok

Herhangi bir kod yazmaya gerek yok

Sadece kaynak dosyayı yükle

Dosyayı kaydetmek için indirme bağlantısını al

Desteklenen Diğer Düzenleyiciler

Diğer dosya biçimlerini de düzenleyebilirsiniz. Lütfen aşağıdaki tam listeye bakın.

DOC

(Microsoft Word Binary Format)

DOCX

(Office 2007+ Word Document)

DOCM

(Microsoft Word 2007 Marco File)

DOTX

(Microsoft Word Template File )

XLS

(Microsoft Excel Spreadsheet (Legacy))

XLSX

(Open XML Workbook)

XLSM

(Macro-enabled Spreadsheet)

PPT

(Microsoft PowerPoint 97-2003)

PPTX

(Open XML presentation Format)

PPTM

(Macro-enabled Presentation File)

MOBI

(Open Ebook Format)

HTML

(Hyper Text Markup Language)

MHTML

(Web Page Archive Format)

TXT

(Text Document)

XML

(XML File)

CSV

(Comma Seperated Values)

RTF

(Rich Text Format)

ODT

(OpenDocument Text File Format)

MSG

(Outlook Message Item File)

EML

(E-Mail Message)

Back to top
 Türkçe