🖥️libreoffice

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the libreoffice command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#  ██╗     ██╗██████╗ ██████╗ ███████╗ ██████╗ ███████╗███████╗██╗ ██████╗███████╗
#  ██║     ██║██╔══██╗██╔══██╗██╔════╝██╔═══██╗██╔════╝██╔════╝██║██╔════╝██╔════╝
#  ██║     ██║██████╔╝██████╔╝█████╗  ██║   ██║█████╗  █████╗  ██║██║     █████╗  
#  ██║     ██║██╔══██╗██╔══██╗██╔══╝  ██║   ██║██╔══╝  ██╔══╝  ██║██║     ██╔══╝  
#  ███████╗██║██████╔╝██║  ██║███████╗╚██████╔╝██║     ██║     ██║╚██████╗███████╗
#  ╚══════╝╚═╝╚═════╝ ╚═╝  ╚═╝╚══════╝ ╚═════╝ ╚═╝     ╚═╝     ╚═╝ ╚═════╝╚══════╝

# 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? 
# This uses sharkdp/fd, you could use GNU find, xargs etc.
fd -e doc -e docx -x libreoffice --headless --convert-to pdf --outdir {//} {}
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░