HtmlToPdf lets any Rails controller action be downloaded as a PDF. Request the action with a PDF format and the gem renders the view exactly as the browser would, then converts it to PDF via a pooled headless Chrome instance (through the ferrum gem) — synchronously, in-request, or in the background via HtmlToPdf.generate_later (ActiveJob, so it runs under Sidekiq/Solid Queue/any adapter), with job status tracking and S3/ActiveStorage storage. Supports Rails 7.x and 8.x.
Required Ruby Version
>= 3.1
Authors
Ram Laxman Yadav
Versions
-
4.0.0
-
source
- 4.0.0 source November 24, 2026 (51 KB)
-
-
3.0.1
-
source
- 3.0.1 source November 24, 2026 (32.5 KB)
-
-
3.0.0
-
source
- 3.0.0 source October 05, 2026 (32 KB)
-
-
2.0.0
-
source
- 2.0.0 source July 11, 2026 (9 KB)
-
-
0.1.0
-
source
- 0.1.0 source August 08, 2023 (7 KB)
-