Parallel Document Conversion ODT > PDF Libreoffice

后端 未结 6 1589
别跟我提以往
别跟我提以往 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条回答
  •  庸人自扰
    2021-02-05 22:55

    We had a similar problem with unoconv. unoconv internally makes use of libreoffice. We solved it by sending multiple files to unoconv in one invocation. So, instead of iterating over all files, we just partition the set of files into buckets, each bucket representing the o/p format. Then we make as many calls as there are buckets.

    I am pretty sure libreoffice also has a similar mode.

提交回复
热议问题