GroupDocs.Editor for Java API ist die richtige Wahl, um Microsoft Word, Excel, PowerPoint, Open Office-Dokumente und -Präsentationen zu bearbeiten. GroupDocs.Editor ist eine eigenständige API, die für serverseitige und Back-End-Systeme geeignet ist, bei denen eine hohe Leistung erforderlich ist. Es ist unabhängig von Software wie Microsoft oder Open Office.
GroupDocs.Editor for Java bietet Entwicklern eine einfache und unkomplizierte Möglichkeit, die DOCM-Dateien mit wenigen Codezeilen zu bearbeiten.
Editor.Edit()
auf und erhalten Sie ein DOCM-Dokument im HTML-Format, das mit jedem WYSIWYG-Editor einfach bearbeitet werden kann.Eine grundlegende Dokumentenbearbeitung mit GroupDocs.Editor for Java-APIs kann durch die Implementierung einiger einfacher Schritte durchgeführt werden. Unsere APIs werden auf allen wichtigen Plattformen und Betriebssystemen unterstützt. Bevor Sie den folgenden Code ausführen, stellen Sie bitte sicher, dass die folgenden Voraussetzungen auf Ihrem System installiert sind.
// Load the DOCM file into Editor with the optional WordProcessingLoadOptions
Editor editor = new Editor("source.docm", new WordProcessingLoadOptions());
// Create and adjust the edit options
WordProcessingEditOptions editOptions = new WordProcessingEditOptions();
// Open input DOCM document for edit — obtain an intermediate document, that can be edited
EditableDocument beforeEdit = editor.edit(editOptions);
// Grab DOCM document content and associated resources from editable document
string content = beforeEdit.getContent();
// 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("Subtitle", "Edited subtitle");
// Grab edited content and resources from WYSIWYG-editor and create a new EditableDocument instance from it
EditableDocument afterEdit = EditableDocument.fromMarkup(updatedContent, null);
// Create a save options and select a desired output format
WordProcessingSaveOptions saveOptions = new WordProcessingSaveOptions(WordProcessingFormats.Docm);
// Save edited DOCM document to the file
editor.save(afterEdit, "edited.docm", saveOptions);
Bearbeiten Sie DOCM jetzt, indem Sie die Website GroupDocs.Editor Live Demos besuchen. Die Live-Demo hat die folgenden Vorteile
Sie müssen die GroupDocs-API nicht herunterladen
Es muss kein Code geschrieben werden
Laden Sie einfach die Quelldatei hoch, um eine sofortige Anzeige zu erhalten
Holen Sie sich den Download-Link, um die Datei auf Ihrem Computer zu speichern
Sie können auch andere Dateiformate bearbeiten. Bitte beachten Sie die vollständige Liste unten.
(Microsoft Word Binary Format)
(Office 2007+ Word Document)
(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)
(E-Mail Message)