Utilities
Convert office files without a desktop session
Office documents in, converted files out.
overview
What libreoffice does
LibreOffice opens one connected office document in headless mode and writes the converted file into the node's output folder. Set --format to pdf, docx, html, odt, or another format supported by the installed LibreOffice filters.
The output is a folder because LibreOffice chooses the filename from the source basename and requested format. Downstream nodes can consume that folder without guessing an internal worker path.
This node uses LibreOffice's rendering and import filters. It is better suited to office files than markup-only converters, but fonts and complex application-specific features can still affect fidelity.
source github.com/LibreOffice/core
use cases
Where libreoffice fits
Export DOCX as PDF
Create a reviewable PDF from an uploaded word-processing document.
Normalize office uploads
Convert mixed office formats into one format before extraction or archiving.
Render generated reports
Turn a workflow-produced office document into a distributable file without running a GUI.
reference
libreoffice inputs and flags
| Name | Type | Flag | Description |
|---|---|---|---|
| input | FILE | --input | Input office document. |
| format | STRING | --format | Target format such as pdf or docx. |
Showing key inputs. libreoffice exposes 2 inputs in total.
example
Run libreoffice
libreoffice --headless --convert-to pdf --outdir output input.htmlconvert input.html -> output/input.pdf using filter : writer_web_pdf_Exportguidance
Choosing libreoffice
Use LibreOffice when office import and export filters matter. Use Pandoc for structure-oriented markup conversion.
pandoc
Converts structured text and document formats without office-suite rendering.
weasyprint
Renders HTML and CSS directly to PDF.
pdftotext
Extracts text after a document has already been converted to PDF.
faq
libreoffice questions
related
More Utilities tools
browser-fetch
Headless Chromium render: requested URL, final URL, status, and title next to the page.
cewl
Spider a URL and return a wordlist for password crackers.
csvkit
SQL on one CSV. The table name is the file stem.
dnsgen
Wordlist and mined-word subdomain permutation.
duckdb
In-process SQL on CSV, JSON, and Parquet. No server.
edge-tts
Microsoft Edge neural speech from text or a script file. No API key.
Run libreoffice yourself
An HTML office fixture is converted to PDF, then the output folder is checked for a valid PDF file.
Facts on this page come from the live Trickest tool library.