我想在我的Wamp(PHP 5.6,Windows 10)中运行UNIX命令。
这是我的命令exec(‘unoconv -e Quality = 300 -f pdf“‘C:\ wamp64 \ www \ mb_new \ photos / service_pdfs / 41963samplepptx__cwt.pptx’”’,$ arr);
…
在Windows中,您可以使用unoconv和python。请参阅github示例: https://github.com/unoconv/unoconv
C:\Program Files (x86)\LibreOffice 4.4\program\python.exe unoconv -f pdf some-file.odt