Wkhtmltopdf::WkImage
Inherits Reference / Object
Constants
FORMATS = ["jpg", "png", "bmp", "svg"]
Output formats available
Constructors
Instance methods
convert(html = nil)
Convert to image
html: HTML string used as content, if omitted (or nil) a URL to fetch is required (usingset_url)
set(key : String, value : String)
Set an option
key: string with key namevalue: string with setting value
NOTE: for available settings see pagePdfObject
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)