Export OpenOffice.org doc to PDF via CLI
Export OpenOffice.org doc to PDF via CLI
How would I do this from the command line? Currently on 4.1.5
OpenOffice 4.1.5 on Mac
Re: Export OpenOffice.org doc to PDF via CLI
Install LibreOffice instead of OpenOffice
Code: Select all
$ libreoffice5.4 --help
[...]
--convert-to OutputFileExtension[:OutputFilterName] [--outdir output_dir]
Batch convert files (implies --headless). If --outdir
isn't specified, then current working directory is used
as output_dir. If --convert-to is used more than once,
last value of OutputFileExtension[:OutputFilterName] is
effective. If --outdir is used more than once, only its
last value is effective. For example:
--convert-to pdf *.doc
--convert-to pdf:writer_pdf_Export --outdir /home/user *.doc
--convert-to "html:XHTML Writer File:UTF8" *.doc
--convert-to "txt:Text (encoded):UTF8" *.doc
[...]
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice