libreoffice
Open and edit office documents
TLDR
View documentation for the original command
SYNOPSIS
libreoffice [options] [file ...]
libreoffice --component [file ...]
PARAMETERS
--writer
Start Writer word processor
--calc
Start Calc spreadsheet
--impress
Start Impress presentation
--draw
Start Draw diagram editor
--base
Start Base database
--math
Start Math formula editor
--headless
Run without user interface
--convert-to FORMAT
Convert files to specified format
--outdir DIR
Output directory for conversions
--print-to-file FILE
Print document to file
-p
Print files and exit
--view
Open documents read-only
--show
Start presentation immediately
DESCRIPTION
LibreOffice is a comprehensive free and open-source office productivity suite that includes applications for word processing (Writer), spreadsheets (Calc), presentations (Impress), diagrams (Draw), databases (Base), and mathematical formulas (Math). The command-line interface allows launching specific components, converting documents between formats, printing, and performing batch operations.
CAVEATS
Batch conversion quality may vary for complex documents. Some features require Java. Compatibility with Microsoft Office formats is good but not perfect. Running multiple instances requires profile management.
FORMAT CONVERSION
Convert documents using: libreoffice --headless --convert-to pdf *.docx
Supported formats include: pdf, doc, docx, odt, xls, xlsx, ods, ppt, pptx, odp, html, txt, csv, and many more.
MACROS AND SCRIPTING
LibreOffice supports macros in Basic, Python, JavaScript, and BeanShell. Use --invisible with macro execution for automation tasks.


