windows 使用python DOC文档转成PDF

soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -headless -norestore -nologo -nofirststartwizard

"C:\Program Files\OpenOffice\program>python "C:\Program Files\OpenOffice\program\DocumentConverter.py"  f:\www\doc.doc > f:\www\doc.pdf


使用openoffice 
C:\Program Files\OpenOffice\program>soffice  --invisible  --convert-to pdf:writer_pdf_Export --outdir "f:\www\doc.doc" > "f:\www\doc.pdf"

c:\Program Files\OpenOffice.org\program>soffice --convert-to pdf:writer_pdf_Export --outdir "f:\www\Nihao.ppt" > "f:\www\nihao.pdf"
上一篇:Ruby学习笔记-String


下一篇:阿里巴巴发布物联网平台:不止互动 更能互懂