功能: 此功能可以建立一個服務作為pdf線上轉檔工具。 作業系統:ubuntu 1、伺服器請先安裝: apt-get install -y libreoffice xvfb 2、請使用root身份建立開機會自動執行的程序,如在 /etc/rc.local 中加入: /usr/bin/xvfb-run soffice -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager -norestore -nofirststartwizard -nologo -headless & 3、予許防火牆使用 8100 4、利用python DocumentConverter.py gg.doc gg.pdf 進行檔案轉檔。