Introducing the wicked_pdf gem

Installation

Usage

require 'wicked_pdf'

pdf = WickedPdf.new.pdf_from_string('<h1>Hello There!</h1>')
File.write 'sample.pdf', pdf

## Output

Here’s a screenshot of the PDF document as viewed from the PDF viewer Evince:

Screenshot of the PDF in the PDF viewer

Resources