2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-15 06:12:59 +00:00
cheat.sheets/sheets/libreoffice

10 lines
354 B
Plaintext
Raw Normal View History

2018-08-15 08:57:19 +00:00
# Convert documents to PDF
libreoffice --headless --convert-to pdf *.pptx
# Save them to a different directory?
libreoffice --headless --convert-to pdf *.docx --outdir ~/docs/
# Convert files nested inside folders?
2018-08-15 08:57:19 +00:00
# This uses sharkdp/fd, you could use GNU find, xargs etc.
fd -e doc -e docx -x libreoffice --headless --convert-to pdf --outdir {//} {}