Ctrl K

LibreOffice Reference

Use LibreOffice on Arch Linux for writing documents, editing office files, opening PDFs visually, and exporting documents to PDF.

LibreOffice is the main office suite on Linux. It provides separate apps for documents, spreadsheets, presentations, drawings, formulas, and database files. The same libreoffice command can launch each app with a different parameter.

Install LibreOffice

Install LibreOffice from the Arch repositories. libreoffice-fresh is usually the best default choice for a normal desktop setup.

sudo pacman -S libreoffice-fresh

Launch office apps

LibreOffice is the host suite. Each app can be launched from the same libreoffice command by passing the target app name.

CommandAppUse case
libreoffice --writerWriterText documents, letters, notes, translations, PDF export
libreoffice --calcCalcSpreadsheets, tables, CSV files
libreoffice --impressImpressPresentations and slide decks
libreoffice --drawDrawDrawings, diagrams, and visual PDF edits
libreoffice --mathMathFormula documents
libreoffice --baseBaseDatabase-style documents

Open a file directly

A file can be opened directly. LibreOffice chooses the matching app based on the file type.

libreoffice document.odt
libreoffice document.docx
libreoffice spreadsheet.xlsx
libreoffice presentation.pptx

Use Writer for .odt and .docx files. .odt is OpenDocument Text, the native LibreOffice Writer format.

Create a blank document

Use Writer when starting from a blank document. This is the normal choice for letters, explanations, translation notes, declarations, and formal text documents.

libreoffice --writer

Export a document to PDF

From the LibreOffice interface, use File, Export As, then Export Directly as PDF. This is the safest method when you want to review the document before creating the final PDF.

For command-line export, use headless mode. This creates a PDF in the current directory.

libreoffice --headless --convert-to pdf document.odt

Edit an existing PDF visually

Use Draw when the task is to open a PDF and make visual changes. This is useful for small text changes, moving objects, adding text boxes, or adjusting document pages visually.

libreoffice --draw document.pdf
  • PDF editing is not the same as editing a Word document.
  • Complex PDFs may open with shifted layout or split text boxes.
  • For scanned PDFs, the page may behave like an image instead of editable text.
  • After editing, export the result back to PDF from File, Export As.

Daily use summary

TaskUse
Write a new documentLibreOffice Writer
Export a document to PDFWriter PDF export
Open and edit .odtWriter
Open and edit .docxWriter
Work with spreadsheetsCalc
Prepare slidesImpress
Edit a PDF visuallyDraw
Create formulasMath
Work with database documentsBase