Java에서 MOBI 수정

Microsoft 또는 Open Office와 같은 소프트웨어를 사용하지 않고 Java API용 서버 측 GroupDocs.Editor를 사용하여 효과적이고 강력한 MOBI 편집.


무료 평가판 다운로드

GroupDocs.Editor for Java API 정보

GroupDocs.Editor for Java API는 Microsoft Word, Excel, PowerPoint, Open Office 문서 및 프레젠테이션을 편집하는 데 적합한 선택입니다. GroupDocs.Editor는 고성능이 요구되는 서버 측 및 백엔드 시스템에 적합한 독립 실행형 API입니다. Microsoft 또는 Open Office와 같은 소프트웨어에 의존하지 않습니다.

Java에서 MOBI를 수정하는 단계

GroupDocs.Editor for Java는 개발자가 몇 줄의 코드를 사용하여 MOBI 파일을 편집할 수 있는 쉽고 간단한 방법을 제공합니다.

  • 필수 파일 경로 또는 바이트 스트림으로 Editor 클래스의 인스턴스를 만들고 MOBI 파일을 로드합니다.
  • MOBI 파일 형식에 대한 EbookEditOptions 클래스 인스턴스 생성 및 설정
  • Editor.Edit() 메서드를 호출하고 모든 WYSIWYG 편집기로 쉽게 편집할 수 있는 HTML 형식의 MOBI 문서를 가져옵니다.
  • Editor.Save() 메서드를 호출하고 편집된 MOBI 파일을 EpubSaveOptions 또는 Azw3SaveOptions 클래스를 사용하여 ePub 또는 AZW3 형식으로 각각 저장합니다.

시스템 요구 사항

GroupDocs.Editor for Java API를 사용한 기본 문서 편집은 몇 가지 간단한 단계를 구현하여 수행할 수 있습니다. 당사의 API는 모든 주요 플랫폼 및 운영 체제에서 지원됩니다. 아래 코드를 실행하기 전에 시스템에 다음 전제 조건이 설치되어 있는지 확인하십시오.

  • 운영 체제: Microsoft Windows, Linux, MacOS
  • 개발 환경: NetBeans, IntelliJ IDEA, Eclipse
  • 프레임워크: Java 7 (1.7) and above
  • Maven에서 최신 버전의 GroupDocs.Editor for Java 다운로드

// Load the MOBI file into Editor
Editor editor = new Editor("source.mobi");

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

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

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

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

MOBI 편집자 라이브 데모

지금 바로 GroupDocs.Editor 라이브 데모 웹사이트를 방문하여 MOBI을(를) 편집하세요. 라이브 데모에는 다음과 같은 이점이 있습니다.

API를 다운로드할 필요가 없습니다

코드를 작성할 필요가 없습니다.

소스파일만 올려주세요

파일 저장을 위한 다운로드 링크 받기

기타 지원되는 편집기

다른 파일 형식을 편집할 수도 있습니다. 아래의 전체 목록을 참조하십시오.

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)

EPUB

(Open eBook File)

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
 한국인