Rails9 min read
Generating PDFs in the Background with HtmlToPdf, ActiveJob, Sidekiq, and Solid Queue
HtmlToPdf 4.0 can now render your Rails views to PDF outside the request cycle, using plain ActiveJob — no Sidekiq- or Solid-Queue-specific code required. An easy walkthrough of the gem, its background-job API, why it holds up in production, and how it stacks up against Grover, WickedPdf, and Prawn.