简体   繁体   English

使用Java从doc或rtf文件读取表单数据

[英]Read form data from doc or rtf file with java

i have a word document with a form that is filled by users and , after that, it is saved. 我有一个Word文档,其格式由用户填写,然后保存。 I would like to access form field data from a Java application in order to automatize some business process. 我想从Java应用程序访问表单字段数据,以自动化一些业务流程。 I have tested Apache POI but it is unabled to access form elements. 我已经测试了Apache POI,但是它无法访问表单元素。 Is there some api to access form element data with java? 是否有一些API使用Java访问表单元素数据?

You can use: Class FFDataBaseAbstractType ( org.apache.poi.hwpf.model.types ). 您可以使用: Class FFDataBaseAbstractTypeorg.apache.poi.hwpf.model.types )。

The FFData structure specifies form field data for a text box, check box, or drop-down list box. FFData结构为文本框,复选框或下拉列表框指定表单字段数据。

You may try Aspose.Words for Java which allows you to access form fields and data in Java applications . 您可以尝试Aspose.Words for Java ,它可以让您访问Java应用程序中的表单字段和数据 The API is quite simple and easy to use. 该API非常简单易用。 The component is a simple Jar file which is easy to deploy with your application. 该组件是一个简单的Jar文件,可轻松与您的应用程序一起部署。 Also note that you do not need to install MS Word in order to use this component. 另请注意,您无需安装MS Word即可使用此组件。 Please see if this might help in your scenario. 请查看这是否对您的情况有所帮助。

Disclosure: I work as developer evangelist at Aspose. 披露:我是Aspose的开发人员。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM