F-Office: Rust layout, rendering and editing engine for DOCX built for AI agents F-Office, a Rust layout, rendering and editing engine for DOCX files built for AI agents, has been released as the `f-office-cli` crate on crates.io, with the `f-office` library at version 0.2, a WebAssembly build (`@f-office/core`), a browser component (`@f-office/docs`) and a React 19 UI (`@f-office/docs-react`). The engine bundles metric-compatible open fonts from Compatifont (OFL-1.1) covering Arial, Times New Roman, Calibri, Cambria, Aptos, Courier New, Georgia, Segoe UI and Comic Sans MS, so documents paginate the same way Microsoft Word does on Linux servers, containers and browsers without Word or a Windows host. The CLI exposes `convert`, `read`, `edit`, `diff` and `skill` commands, letting agents apply atomic edit lists that either land in full or leave the file untouched and see which pages moved; F-Office Sheets (XLSX) and F-Office Slides (PPTX) are planned next. A drop-in replacement for Microsoft Word, for the agentic era. Live demo f-office.org/docs https://f-office.org/docs · CLI install-foffice-cli · Rust use-from-rust · JavaScript / Browser use-from-javascript--typescript-f-officecore-and-f-officedocs · Roadmap roadmap-and-status F-Office is a Rust layout, rendering, and editing engine for DOCX documents, built for AI agents and applications that need every page to break the way Microsoft Word breaks it. In contracts, filings, and reports, pagination is part of the document. People notice where a page ends, how a table splits across pages, and which line a signature lands on, so an edit that shifts a page break can spoil a document even when every word is right. F-Office closes that loop. An agent or program can inspect paragraphs and tables by stable address, apply atomic edit lists that either land in full or leave the file untouched, see exactly which pages moved, and render full pages or cropped diffs to PNG or PDF before handing the file back. Microsoft Word lays out documents using Windows and Office fonts that are absent on Linux servers, containers, and browsers. The foffice CLI bundles metric-compatible open fonts from Compatifont https://github.com/osolmaz/compatifont OFL-1.1 so lines break at the same word on any machine, with no copy of Word and no Windows host. The same engine compiles to WebAssembly @f-office/core for browser and Node.js apps, using lazy ZIP reading, progressive Page-1-first loading, and tiled rendering to stay within mobile memory budgets, alongside the drop-in F-Office Docs F-Docs browser component @f-office/docs and React 19 UI @f-office/docs-react . Currently supports F-Office Docs Word for Windows word-win DOCX files , with F-Office Sheets @f-office/sheets , XLSX and F-Office Slides @f-office/slides , PPTX planned next. The F stands for Free. Any other reading is on you. From crates.io: cargo install f-office-cli Or pre-built binaries with cargo-binstall or from GitHub Releases https://github.com/osolmaz/f-office/releases : cargo binstall f-office-cli Convert a DOCX file to PDF or PNG page images foffice convert report.docx --to pdf --out out/report.pdf foffice convert report.docx --to png --pages 1-3 --dpi 150 --outdir pages Read paragraphs and tables with their addresses and page spans foffice read report.docx foffice read report.docx --at t1 --format json Apply an atomic JSON edit list and see which pages changed foffice edit report.docx edits.json --out report-v2.docx Visually compare two DOCX files and render cropped changed regions foffice diff report.docx report-v2.docx --outdir diff Generate a live SKILL.md for automation agents foffice skill --outdir .agents/skills By default, foffice bundles open metric-compatible fonts from Compatifont https://github.com/osolmaz/compatifont OFL-1.1 covering Arial, Arial Narrow, Arial Black, Times New Roman, Calibri, Cambria, Cambria Math, Aptos, Aptos Display, Courier New, Georgia, Segoe UI, Comic Sans MS, and the Office symbol fonts when those fonts are not installed on your system. The library itself does not ship fonts. Pass your own font files or open metric-compatible fonts from Compatifont https://github.com/osolmaz/compatifont . Add f-office to your Cargo.toml : dependencies f-office = "0.2" use f office::{Document, FontDatabase, Options}; fn convert to pdf docx: & u8 , font bytes: & u8 - Result