[英]Adding buttons, textfields, checkboxes etc. to an OpenOffice textdocument usind UNO with Java
I am trying to create a OpenOffice document using the UNO-API with Java. 我正在尝试使用带有Java的UNO-API创建OpenOffice文档。 I am already able to create a simple document and put some simple text into it.
我已经能够创建一个简单的文档并将一些简单的文本放入其中。
What I want to do, ie need to do, is add also Forms (TextFields, CheckButtons, Push(Click)Buttons) into it. 我想做的事(即需要做的)是在其中也添加表单(文本字段,检查按钮,推(单击)按钮)。
The idea is to create a form in openoffice which in the end can be transformed to a PDF with interactive pdf-forms. 这个想法是在openoffice中创建一个表单,最后可以通过交互式pdf表单将其转换为PDF。
I am able of creating these with iText and manually with OpenOffice. 我可以使用iText创建这些文件,也可以使用OpenOffice手动创建这些文件。 But I have not found a (simple or any) Example of creating such objects with the UNO-API.
但是我还没有找到使用UNO-API创建此类对象的(简单或任何)示例。
So any help, hints or links (not that I haven't tried to find something via google, but maybe I just used the wrong key-words) is appreciated. 因此,任何帮助,提示或链接(不是我没有尝试通过Google查找某些东西,但也许我只是使用了错误的关键字)都表示赞赏。
An alternative for you might be to use the ODF Toolkit, with its Java APIs for manipulating ODF documents, the native format of OpenOffice.org and its descendants. 您可能的替代选择是使用ODF Toolkit及其Java API来处理ODF文档,OpenOffice.org的本机格式及其后代。
I don't know if ODF Toolkit supports the features you are interested in though. 我不知道ODF Toolkit是否支持您感兴趣的功能。 Check at http://incubator.apache.org/odftoolkit/
查看http://incubator.apache.org/odftoolkit/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.