Created
May 13, 2019 03:28
-
-
Save dyllanwli/415383eaae9a9b8ebe0d494217a5ffb6 to your computer and use it in GitHub Desktop.
Libreoffice headless convert doc to pdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "hello world" > a.txt | |
soffice --headless --invisible --nodefault --nofirststartwizard \ | |
--nolockcheck --nologo --norestore --convert-to pdf --outdir $(pwd) a.txt | |
# to run multiple convert just use * as a selector |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment