Wkhtmltox-ffi is a project mainly written in ..., it's free.
wkhtmltopdf/wkhtmltoimage binding for Ruby via FFI