← Daily
📝 article github.com · August 9, 2026

sghtmltopdf: an HTML to PDF renderer in Rust, with a Ruby gem and Rails integration

wkhtmltopdf was archived in 2023, leaving Rails apps stuck between an unmaintained binary and spawning headless Chrome. I built sghtmltopdf , a new rendering engine written in Rust that implements CSS Fragmentation and @page directly, so page breaks, orphans and widows are first-class rather than approximated. It ships as a CLI, an HTTP server, and a Ruby gem ( gem "sghtmltopdf" ).

Read on github.com →

More from this day

+ Feature your site