Parallel Document Conversion ODT > PDF Libreoffice

后端 未结 6 1657
别跟我提以往
别跟我提以往 2021-02-05 22:41

I am converting hundreds of ODT files to PDF files, and it takes a long time doing one after the other. I have a CPU with multiple cores. Is it possible to use bash or python to

6条回答
  •  猫巷女王i
    2021-02-05 23:03

    this thread or answer is old. I tested libreoffice 4.4, I can confirm I can run libreoffice concurrently. see my script.

    for odt in test*odt ; do
    echo $odt
    soffice --headless --convert-to pdf $odt & 
    ps -ef|grep ffice 
    done

提交回复
热议问题