I'm looking for a good (better) way to convert MS DOC files to PDF (via a Linux command line, no GUI methods, please).
Methods I've used:
1) LibreOffice - with --headless and --convert-to
2) unoconv - which uses LibreOffice as the back end, so is, essentially, the same process
I started out using LO (method 1 above), but then switched to method 2, hoping it would be faster. In theory, it is, or should be, but in practice, not so much. In theory, unoconv should launch a copy of LO that runs as a background process, and then subsequent runs of unoconv will communicate with the background process and thus save the expense and time of re-launching LO each time.
However, for various reasons I won't go into here, it (unoconv) doesn't work nearly as well in practice as it does in theory.
Note that method 1 does work, but I'm hoping for something a bit more aesthetically appealing.
I have also looked at various "library" methods - via DuckDuckGo'ing - there exist libraries for this for both Python and Perl (and probably many, many other languages, but the only ones I'm even vaguely familiar with are these two), but they didn't look right to me. I didn't even bother downloading/installing any of these libraries, because they just didn't pass the initial "sniff test".
So, that all said, I'm asking if anyone here has direct experience with a method that I might like better than the ones I've tried. By direct experience, I mean something you've actually used and are happy with, not just the result of more random Google searches. A pure Python (or Perl or ...) solution would be fine, as long as it works, and is reasonably lightweight.
Thanks in advance.
Methods I've used:
1) LibreOffice - with --headless and --convert-to
2) unoconv - which uses LibreOffice as the back end, so is, essentially, the same process
I started out using LO (method 1 above), but then switched to method 2, hoping it would be faster. In theory, it is, or should be, but in practice, not so much. In theory, unoconv should launch a copy of LO that runs as a background process, and then subsequent runs of unoconv will communicate with the background process and thus save the expense and time of re-launching LO each time.
However, for various reasons I won't go into here, it (unoconv) doesn't work nearly as well in practice as it does in theory.
Note that method 1 does work, but I'm hoping for something a bit more aesthetically appealing.
I have also looked at various "library" methods - via DuckDuckGo'ing - there exist libraries for this for both Python and Perl (and probably many, many other languages, but the only ones I'm even vaguely familiar with are these two), but they didn't look right to me. I didn't even bother downloading/installing any of these libraries, because they just didn't pass the initial "sniff test".
So, that all said, I'm asking if anyone here has direct experience with a method that I might like better than the ones I've tried. By direct experience, I mean something you've actually used and are happy with, not just the result of more random Google searches. A pure Python (or Perl or ...) solution would be fine, as long as it works, and is reasonably lightweight.
Thanks in advance.
Statistics: Posted by BigRedMailbox — Thu Aug 22, 2024 8:55 pm