Wkhtmltopdf::WkPdf
Inherits Reference / Object
Constructors
new(path = "", force_init = false)
Init default values
path: string with an output file path (extension included)
Instance methods
convert(html = nil, do_init = true)
Convert to PDF
html: HTML string used as content, if omitted (or nil) a URL to fetch is required (usingset_url)
object_setting(key : String, value : String)
Pdf object settings
key: string with key namevalue: string with setting value
NOTE: for available settings see pagePdfObject
set(key : String, value : String)
Pdf global settings
key: string with key namevalue: string with setting value
NOTE: for available settings see pagePdfGlobal
set_output(path : String)
Set output path
path: string with an output file path (extension included)
set_url(url : String)
Set URL to fetch content from
url: string with a complete URL (schema included)