<repositories>
   <repository>
      <id>repository.groupdocs.com</id>
      <name>GroupDocs Repository</name>
      <url>https://releases.groupdocs.com/java/repo/</url>
   </repository>
</repositories>

<dependencies>
   <dependency>
      <groupId>com.groupdocs</groupId>
      <artifactId>groupdocs-editor</artifactId>
      <version>23.9</version>
   </dependency>
</dependencies>
copied!  
repositories {
    maven {
        url 'https://releases.groupdocs.com/java/repo/'
    }
}

compile(group: 'com.groupdocs', name: 'groupdocs-editor', version: '23.9')
copied!  
<ivysettings>
    <settings defaultResolver="chain"/>
    <resolvers>
        <chain name="chain">
            <ibiblio name="GroupDocs Repository" m2compatible="true" root="https://releases.groupdocs.com/java/repo/"/>
        </chain>
    </resolvers>
</ivysettings>

<dependency org="com.groupdocs" name="groupdocs-editor" rev="23.9">
   <artifact name="groupdocs-editor" ext="jar"/>
</dependency>
copied!  
resolvers += Resolver.url("GroupDocs Repository", url("https://releases.groupdocs.com/java/repo/"))

libraryDependencies += "com.groupdocs" % "groupdocs-editor" % "23.9"
copied!  

Document Annotator Java High Code API

main-banner

Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

GroupDocs.Editor for Java is a java class library to help you perform document editing of many popular document formats. Edit multi-lingual documents by setting the language & locale information accordingly. Enable pageless or paged mode for a more comfortable editing experience via Java API. Detect email addresses & URIs.

Document Editor Java on premise API Features

  • Editing can be done in both the flow (pageless) mode & paged (paginal) mode.
  • Fetch and work with language / locale information for multi-lingual document editing.
  • Ability to extract font information enables same editing and appearance of documents in various environments.
  • Specify index of current worksheet while editing multi-tabbed spreadsheets.
  • Specify separator while editing comma-separated values (CSV) and tab-separated values (TSV) files.
  • Memory usage optimization while working with large CSV & TSV files.
  • Fix incorrect document structure of XML files.
  • Ability to recognize URIs and email address.
  • Add protection to the document by applying editing restrictions.

Supported Document Editing File Formats

Microsoft Word®: DOC/DOCX/DOCM/DOT/DOTM/DOTX/FlatOPC/RTF/WordML
OpenOffice Writer®: ODT/OTT
Windows Excel®: XLS/XZLT/XLSX/XLSM/XLTX/XLTM/XLSB/XLAM
OpenOffice Calc®: SXC/ODS/FODS
StarCalc: DIF
Nintendo® DS Emulator: DSV
Windwos PowerPoint⪚: PPT/PPTX/PPTM/PPS/PPSX/PPSM/POT/POTX/POTM
OpenOffice Impress®: ODP/OTP
Text: TXT/CSV/TSV
Markup: HTML/XML

Supported Auto-detection File Formats

Microsoft Word®: DOC/DOCX/DOCM/DOT/DOTM/DOTX/RTF
OpenOffice Writer®: ODT/OTT
Windows Excel®: XLS/XZLT/XLSX/XLSM/XLTX/XLTM/XLSB/XLAM
OpenOffice Calc®: SXC/ODS/FODS
Windwos PowerPoint⪚: PPT/PPTX/PPTM/PPS/PPSX/PPSM/POT/POTX/POTM
OpenOffice Impress®: ODP/OTP

For details and limitations please visit, Supported Document Formats.

System Requirements

  • Microsoft Windows: Windows Desktop & Server (x86, x64), Microsoft Azure
  • macOS: Mac OS X
  • Linux: Ubuntu, OpenSUSE, CentOS, and others
  • Java Versions: J2SE 6.0 (1.6), J2SE 7.0 (1.7), J2SE 8.0 (1.8) or above (for example Java 10)

GroupDocs.Editor for Java does not require any external software or third party tool to be installed. Just follow one of the ways as described in Installation and Configuration.

Get Started

GroupDocs hosts all Java APIs at the GroupDocs Repository. You can easily use GroupDocs.Editor for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installation from GroupDocs Repository using Maven documentation page.

Sample Java code to Edit a TXT File

TextEditOptions editOptions = new TextEditOptions();
editOptions.setEncoding(StandardCharsets.UTF_8);
editOptions.setRecognizeLists(true);
editOptions.setLeadingSpaces(TextLeadingSpacesOptions.ConvertToIndent);
editOptions.setTrailingSpaces(TextTrailingSpacesOptions.Trim);
editOptions.setDirection(TextDirection.Auto);

EditableDocument beforeEdit = editor.edit(editOptions); // Create EditableDocument instance

String originalTextContent = beforeEdit.getContent(); // Get HTML content
String updatedTextContent = originalTextContent.replace("text", "EDITED text"); // Edit content
List<IHtmlResource> allResources = beforeEdit.getAllResources(); // Get resources (only one stylesheet actually in this case)

//Finally, create new EditableDocument
EditableDocument afterEdit = EditableDocument.fromMarkup(updatedTextContent, allResources);

Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

VersionRelease Date
23.9September 20, 2023
23.5.1July 26, 2023
23.5May 17, 2023
23.2February 6, 2023
22.11November 16, 2022
22.9September 27, 2022
22.6August 25, 2022
22.4April 21, 2022
20.8.1January 25, 2022
17.9January 25, 2022
20.11November 25, 2020
20.8August 13, 2020
19.10October 4, 2019
19.4April 3, 2019
18.9September 12, 2018