1
根據文檔,unoconv可以轉換LibreOffice支持的任何格式。 Supported formatsunoconv轉換pdf所有頁面到png
這裏是試圖將PDF文件的所有頁面轉換成PNG圖片代碼:
C:\Program Files (x86)\LibreOffice 4\program>python.exe unoconv -f png
-e PageRange=1-2 klas.pdf
但我得到的錯誤:
unoconv: UnoException during export phase:
Unable to store document to file:///C:/Program%20Files%20(x86)/LibreOffice%204/p
rogram/klas.png (ErrCode 3088)
我如何使用這個- e選項?任何工作示例?
如果你只使用PDF文件的工作,那麼你真的會更好使用的Ghostscript。它的開銷較小,專爲PostScript和PDF文件設計。 – Dan