问题描述
我想使用Open Office将Word文件转换为pdf.经过研究后,我发现 http://www.oooninja.com/2008/02/batch-command-line-file-conversion-with.html [ ^ ]显示使用
"C:\ Program Files \ OpenOffice.org2.4 \ program \ soffice.exe"-无头-nologo -norestore -accept = socket,host = localhost,port = 8100; urp; StarOffice.ServiceManager"C:\ Program Files \ OpenOffice.org2.4 \ program \ python"DocumentConverter.py test.odt test.pdf
我在cmd.exe中使用了上面的脚本,但是它不起作用.我是否需要安装某些东西才能使它正常工作.我想将此集成到我的C#应用程序中.
请帮助我.
谢谢,
Hi,
I want to convert a word file to pdf using Open office. after doing some research I found http://www.oooninja.com/2008/02/batch-command-line-file-conversion-with.html[^] which shows to use
"C:\Program Files\OpenOffice.org2.4\program\soffice.exe" -headless -nologo -norestore -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager "C:\Program Files\OpenOffice.org2.4\program\python" DocumentConverter.py test.odt test.pdf
I have used the above script in cmd.exe but it does not work . Do I need to install something to get this working. I want to integrate this into my C# application.
Please help me in this.
Thanks,
推荐答案
这篇关于使用DocumentConverter.py在C#中将Word转换为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!