Radar · Rust · Archive · Week 10 · Mar 2 – 8, 2026
office2pdf crate of the week
Nice to knowecosystem
- What changed
- The crate office2pdf is a standalone library or binary that generates PDF from OOXML files such as docx and xlsx.
- Production impact
- The source does not say.
- Try it
- Add
office2pdf = "0.1"to your Cargo.toml and experiment with converting a DOCX file to PDF. - Source
- this-week-in-rust.org/blog/2026/03/04/this-week-in-rust-641/
Understand it, then run it
The crate of the week is office2pdf. It is a library or binary that turns OOXML documents such as docx or xlsx into PDF files. If you have a Word or Excel file and want a PDF, office2pdf can do that for you. The announcement simply highlights the crate; it does not change the Rust language or compiler. You can find it on crates.io and use it in your own projects.
Run it now
// This program demonstrates the office2pdf crate of the week.
// It simply prints a message; the crate itself is not used here.
fn main() {
// The crate is available on crates.io, but we are not importing it
// because the change is only an announcement, not a language update.
println!("office2pdf crate of the week");
}
What it printed when we ran it on Rust 1.98.1 (edition 2024)
office2pdf crate of the week
Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed