如何解决使用odf 1.3合并两个ODT文档
我对odf版本1.3有问题。 我使用OpenOffice API Java将2个odt文档合并到光标位置。 如果文档版本为1.2 odt,没问题,但是如果我设置版本1.3,则它不会合并。
...
...
anotherDocumentPath = "file:///D:\tmp\C_test_obj_.odt";
XTextRange xStart = (com.sun.star.text.XTextRange) UnoRuntime.queryInterface(com.sun.star.text.XTextRange.class,xfi);
XTextCursor cursor = xTextDocument.getText().createTextCursor();
cursor.gotoRange(xStart,false);
XDocumentInsertable insertable = (XDocumentInsertable) UnoRuntime.queryInterface(XDocumentInsertable.class,cursor);
insertable.insertDocumentFromURL(anotherDocumentPath,new PropertyValue[0]);
...
...
如果选择1.2版,则可以使用1.3版,但不能正确插入文档。
替代品?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。