发布于 2017-11-17 18:17:02
--headless
。import uno
开始。或者这可以用Python脚本来完成。在http://christopher5106.github.io/office/2015/12/06/openoffice-libreoffice-automate-your-office-tasks-with-python-macros.html有一个很好的教程。dim args(1) as new com.sun.star.beans.PropertyValue
args(0).Name = "Name"
args(0).Value = "file:///path/to/the_document.odt"
args(1).Name = "Filter"
args(1).Value = "writer8"
dispatcher.executeDispatch(document, ".uno:InsertDoc", "", 0, args())
https://stackoverflow.com/questions/47351447
复制相似问题