<dependency>
<groupId>com.groupdocs</groupId>
<artifactId>groupdocs-editor</artifactId>
<version>20.11</version>
</dependency>
compile(group: 'com.groupdocs', name: 'groupdocs-editor', version: '20.11')
<dependency org="com.groupdocs" name="groupdocs-editor" rev="20.11">
<artifact name="groupdocs-editor" ext="jar"/>
</dependency>
libraryDependencies += "com.groupdocs" % "groupdocs-editor" % "20.11"
文档注释器Java高码API
产品页面 | 文档 | 演示 | API参考 | 例子 | 博客 | 免费支持 | 临时许可
Java的GroupDocseditor是Java类库,可帮助您执行许多流行文档格式的文档编辑。通过相应地设置语言和语言信息信息来编辑多语言文档。启用无机或分页模式,以通过Java API获得更舒适的编辑体验。检测电子邮件地址和URI。
文档编辑器Java在前提API功能上
可以在流无启动模式的第aginal模式中进行编辑。
获取并使用语言 /语言信息信息进行多语言文档编辑。
提取字体信息的能力可以在各种环境中相同的编辑和文档外观。
在编辑多标签电子表格时指定当前工作表的索引。
在编辑逗号分隔值(``csv’)和tab分隔值(`tsv’)文件时指定分隔符。
使用大型csv
&
tsv`文件时的内存使用优化。修复
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);
File | Classifier | Size |
---|---|---|
groupdocs-editor-20.11-javadoc.jar | javadoc | 626.26 KB |
groupdocs-editor-20.11.jar | 138.53 MB | |
groupdocs-editor-20.11.pom | 1.97 KB |
GroupDocs.Total GroupDocs.Editor API on premise DOC DOCX DOCM DOT DOTM DOTX FlatOPC RTF WordML ODT OTT XLS XZLT XLSX XLSM XLTX XLTM XLSB XLAM SXC ODS FODS DIF DSV PPT PPTX PPTM PPS PPSX PPSM POT POTX POTM ODP OTP TXT CSV TSV HTML XML flow pageless paged paginal edit editor editing locale language multi lingual comma separated values tab-separated tab comma-separated URI email restrictions protection document automation windows macOS Linux J2SE azure document automation