Fulgur¶
Your AI writes freely. Fulgur delivers with authority.
An HTML/CSS to PDF library for Rust. Seal the output your AI agent generates into authoritative, permanent documents.
Quick Start¶
Use Cases¶
-
AI Agent Output
Seal HTML reports generated by AI agents into authoritative, permanent PDFs.
-
SaaS Invoice Generation
Generate invoices and receipts dynamically from templates and JSON data in multi-tenant environments.
-
Batch Reports
Produce thousands of PDFs in parallel from JSON data with deterministic, reproducible output.
Features¶
-
Blazing Fast
Throughput that outpaces wkhtmltopdf and Puppeteer. Benchmarked, not just claimed.
-
Pure Rust
No headless browser, no Chromium, no C++ runtime. A single
cargo add fulgur. -
Offline-First
Zero network access at render time. Every asset is explicitly bundled โ perfect for sandboxed and WASM environments.
-
Deterministic Output
Same HTML + same bundled assets = byte-identical PDF, reproducible across machines.
-
CSS Paged Media (GCPM)
Running headers/footers, page counters, named pages, and margin boxes โ the CSS spec that matters for real documents.
Comparison¶
| Fulgur | wkhtmltopdf | WeasyPrint | fullbleed | Puppeteer | Prince | Gotenberg | |
|---|---|---|---|---|---|---|---|
| Pure Rust | โ | โ | โ | โ | โ | โ | โ |
| WASM support | planned | โ | โ | โ | โ | โ | โ |
| CSS GCPM depth | โ โ โ | โ โ | โ โ โ | โ | โ โ | โ โ โ โ | โ โ |
| No headless browser | โ | โ | โ | โ | โ | โ | โ |
| JavaScript execution | โ | โณ | โ | โ | โ | โ | โ |
| Serverless-friendly | โ | โ | โ | โ | โณ | โณ | โณ |
| Speed | โกโกโก | โก | โก | โกโกโก | โก | โกโก | โก |
| License | MIT/Apache | LGPL | BSD | MIT | MIT | Commercial | MIT |
| Install size | small | medium | medium | small | large | medium | large |
Prince is the reference implementation for CSS Paged Media and the closest benchmark for CSS coverage. Gotenberg requires Docker. Puppeteer and Gotenberg bundle a full Chromium installation.
Standing on the Shoulders of wkhtmltopdf¶
Fulgur was inspired by wkhtmltopdf โ a tool that served the web development community for over a decade. We built Fulgur to carry that legacy forward in the Rust era: faster, safer, and ready for the age of AI-generated documents.