wkhtmltopdf for Crystal

Crystal wrapper for C library libwkhtmltox. wkhtmltopdf and wkhtmltoimage permits to render HTML into PDF and various image formats using the Qt WebKit rendering engine - http://wkhtmltopdf.org/

Requirements

Installation

dependencies:
  wkhtmltopdf-crystal:
    github: blocknotes/wkhtmltopdf-crystal

Documentation

Usage

require "wkhtmltopdf"
Wkhtmltopdf::WkPdf.new( "test.pdf" ).convert( "<h3>Just a test</h3>" )
require "wkhtmltopdf"
img = Wkhtmltopdf::WkImage.new
img.set_url "http://www.google.it"
img.set_output "test.jpg"
img.set "quality", "90"
img.convert

See examples folder.

Contributors