GroupDocs.Editor at a glance

API to edit, translate, and save documents, slides, and diagrams in Java applications.

Illustration editor

Effortlessly edit multiple documents in Java

Seamlessly edit multiple PDF and Office files with support for a wide range of formats. GroupDocs.Editor for Java makes document editing fast and hassle-free.

Translate documents to HTML/CSS

Translate documents to HTML/CSS markup compatible with WYSIWYG editors, allowing easy and efficient document editing in a web environment.

Save edited documents in various formats

Save your edited documents back to their original format or export them to other formats such as PDF, ensuring flexibility and compatibility.

Platform independence

GroupDocs.Editor for Java supports the following operating systems, frameworks, and package managers.

Amazon
Docker
Azure
Eclipse
IntelliJ
Windows
Linux
Maven

Supported file formats

GroupDocs.Editor for Java supports operations with the following file formats.

Microsoft Office formats

  • Word: DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF, TXT
  • Excel: XLS, XLSX, XLSM, XLSB, XLTM, XLTX, XLT, XLAM
  • PowerPoint: PPT, PPTX, PPS, PPSX, ODP, OTP

Documents

  • Documents: PDF,
  • OpenDocument: ODT, OTT, ODS
  • eBook: EPUB

Other formats

  • Web: HTML, MHTML, MHT, MARKDOWN

GroupDocs.Editor features

Seamlessly edit, translate, and save PDF and Office documents.

Feature icon

Edit files

Edit the content of various document formats including PDF, DOCX, XLSX, PPTX, and more.

Feature icon

Translate to HTML/CSS

Convert documents to HTML/CSS for easy editing with WYSIWYG editors like CKEditor or TinyMCE.

Feature icon

Save edited documents

Save the edited HTML/CSS back to the original document format or export to PDF.

Feature icon

Extract document information

Extract information such as page count, size, and encryption status from documents.

Feature icon

Support for various formats

Edit a wide range of document formats including Microsoft Office files, PDFs, and more.

Feature icon

Password protection

Edit password-protected documents with ease.

Feature icon

Custom document encoding

Specify document encoding during editing and saving processes.

Feature icon

Font extraction

Extract fonts from documents for use in the editing process.

Feature icon

Preview pages

Generate image representations of document pages to better understand content and structure.

Code samples

Some use cases of typical GroupDocs.Editor for Java operations.

Edit specific DOCX file content

The Document Editing feature allows you to load, edit, and save DOCX files. Here’s an example of how to achieve document editing using Java:

How to edit DOCX files in Java

// Instantiate Editor object by loading the input file
Editor editor = new Editor(inputFilePath);
// Open input document for edit — obtain an intermediate document, that can be edited
EditableDocument beforeEdit = editor.edit();

// Grab document content and associated resources from editable document
String content = beforeEdit.getContent();

Edit form fields in a Word document

Easily edit form fields within a Word document using GroupDocs.Editor for Java. Here’s how to edit form fields in a Word document using Java:

How to edit form fields in a Word document using GroupDocs.Editor for Java

Editor editorDocx = new Editor(docxInputFilePath);

// Check it
IDocumentInfo infoDocx = editorDocx.getDocumentInfo(null);
if (infoDocx instanceof WordProcessingDocumentInfo) {
    isWordProcessing = "yes";
}

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English