Skip to main content

One post tagged with "headless chrome"

View All Tags

HTML to PDF in Rails with Puppeteer-Ruby Gem

· 11 min read
Michał Szymanowski
Michał Szymanowski
PDFBolt Co-Founder

Generate PDF from HTML using Puppeteer-Ruby in Ruby on Rails

Web applications frequently need to generate high-quality PDF documents from HTML content – invoices, reports, certificates, and business documentation. Puppeteer-Ruby is a pure Ruby port of Google's Puppeteer API that gives you direct access to Chrome's rendering engine for Ruby on Rails PDF generation. This guide walks you through implementing HTML to PDF conversion using Puppeteer-Ruby, producing high-quality results with full support for modern CSS and JavaScript.