<dependency>
    <groupId>com.groupdocs</groupId>
    <artifactId>groupdocs-editor</artifactId>
    <version>17.9</version>
</dependency>
copied!  
compile(group: 'com.groupdocs', name: 'groupdocs-editor', version: '17.9')
copied!  
<dependency org="com.groupdocs" name="groupdocs-editor" rev="17.9">
    <artifact name="groupdocs-editor" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.groupdocs" % "groupdocs-editor" % "17.9"
copied!  

文档注释器Java高码API

banner

产品页面 | 文档 | 演示 | API参考 | 例子 | 博客 | 免费支持 | 临时许可

Java的GroupDocseditor是Java类库,可帮助您执行许多流行文档格式的文档编辑。通过相应地设置语言和语言信息信息来编辑多语言文档。启用无机或分页模式,以通过Java API获得更舒适的编辑体验。检测电子邮件地址和URI。

文档编辑器Java在前提API功能上

  • 可以在流无启动模式的第aginal模式中进行编辑。

  • 获取并使用语言 /语言信息信息进行多语言文档编辑。

  • 提取字体信息的能力可以在各种环境中相同的编辑和文档外观。

  • 在编辑多标签电子表格时指定当前工作表的索引。

  • 在编辑逗号分隔值(``csv’)和tab分隔值(`tsv’)文件时指定分隔符。

  • 使用大型csvtsv`文件时的内存使用优化。

  • 修复XML文件的错误文档结构。

  • 能够识别URI和电子邮件地址的能力。

  • 通过应用编辑限制向文档添加保护。

支持的文档编辑文件格式

Microsoft Word&reg;: doc/docx/docm/dot/dotm/dotx/flatopc/rtf/wordml \
OpenOffice Writer&reg;: ODT/OTT
Windows Excel&reg;: XLS/XZLT/XLSX/XLSM/XLTX/XLTM/XLSB/XLAM \
openoffice calc&reg;: sxc/ods/fods
starcalc: dif
任天堂&reg; DS模拟器: DSV
windwos powerpoint&eg;: ppt/pptx/pptm/pps/ppsx/ppsm/ppsm/pot/potx/potm \
OpenOffice Impress&reg;: ODP/OTP
文本: txt/csv/tsv
标记: html/xml

支持的自动检测文件格式

Microsoft Word&reg;: doc/docx/docm/dot/dotm/dotx/rtf \
OpenOffice Writer&reg;: ODT/OTT
Windows Excel&reg;: XLS/XZLT/XLSX/XLSM/XLTX/XLTM/XLSB/XLAM \
openoffice calc&reg;: sxc/ods/fods
windwos powerpoint&eg;: ppt/pptx/pptm/pps/ppsx/ppsm/ppsm/pot/potx/potm \
OpenOffice Impress&reg;: ODP/OTP

有关详细信息和限制,请访问支持的文档格式

系统要求

  • Microsoft Windows: Windows Desktop&Server(X86,X64),Microsoft Azure
  • macOS: Mac OS X
  • Linux: Ubuntu,Opensuse,Centos等
  • Java版本:``J2SE 6.0(1.6)J2SE 7.0(1.7)J2SE 8.0(1.8)`或以上(例如Java 10)

Java的GroupDocs.编辑器不需要安装任何外部软件或第三方工具。只需按照安装和配置中描述的方式之一。

开始

GroupDocs在GroupDocs存储库托管所有Java API。您可以在Maven项目中直接使用Java API轻松使用groupDocs.editor,并使用简单的配置使用。有关详细说明,请访问使用Maven从GroupDocs存储库安装文档页面。

示例Java代码编辑txt文件

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);

产品页面 | 文档 | 演示 | API参考 | 例子 | 博客 | 免费支持 | 临时许可

VersionRelease Date
22.112022年11月16日
22.92022年9月27日
22.62022年8月25日
22.42022年4月21日
20.8.12022年1月25日
17.92022年1月25日
20.112020年11月25日
20.82020年8月13日
19.102019年10月4日
19.42019年4月3日
18.92018年9月12日