Back to browse
GitHub Repository

LibreOffice CLI in Rust

16 starsRust

LibreOffice-rs – I built a pure-Rust LibreOffice using autoresearch

by stan_kirdey·May 19, 2026·10 points·1 comment

AI Analysis

●●●BangerWizardryBig BrainZero to One

Pure-Rust DOCX to PDF converter running 100x faster than LibreOffice with zero C dependencies.

Strengths
  • Implements complex OOXML and ODF parsing using only Rust standard library.
  • Drops into serverless environments where installing LibreOffice is impossible.
  • Benchmarks show 10–187x speed improvement over headless LibreOffice conversions.
Weaknesses
  • Explicitly admits it is not feature-parity with full LibreOffice suite yet.
  • Rendering fidelity for complex macros or legacy formats may be limited.
Target Audience

Rust developers and DevOps engineers needing lightweight document conversion

Similar To

LibreOffice · Pandoc · Docx4j

Post Description

Hey HN,

I built libreoffice-rs: a pure-Rust, std-only library + CLI for reading, writing, converting, and rendering office documents — with *zero* LibreOffice, Java, or C dependencies.

100x faster... I know, I know.

It supports DOCX, XLSX, PPTX, ODT/ODS/ODP, PDF, Markdown, CSV, HTML, SVG, and more. The CLI is designed to feel familiar:

```bash cargo install libreoffice-pure

# soffice-style usage libreoffice-pure --headless --convert-to pdf report.docx libreoffice-pure --headless --convert-to csv spreadsheet.xlsx

# Markdown extraction libreoffice-pure docx-to-md report.docx report.md libreoffice-pure pptx-to-md slides.pptx slides.md

# Render pages as images libreoffice-pure docx-to-pngs report.docx pages/ --dpi 144 ```

Similar Projects

Open Source●●Solid

Libgd-GIS – Render maps and GIS data directly in Ruby (GeoJSON → Image)

Rendering GeoJSON to images entirely in Ruby — with YAML styles, server-side tile generation and animated GIF output — is an unexpectedly practical move for shops that want zero JS/native deps. The examples show thoughtful control (fonts, antialias, basemap presets) and real-world outputs, though performance and advanced projection/feature parity versus Mapnik/GDAL remain open questions.

WizardryNiche Gem
ggerman2025
203mo ago