class Wkhtmltopdf::WkImage
- Wkhtmltopdf::WkImage
- Reference
- Object
Defined in:
wkhtmltopdf/wk_image.crConstant Summary
-
FORMATS =
["jpg", "png", "bmp", "svg"]
Constructors
-
.new(path = "")
Prepare the structure
Instance Method Summary
- #buffer : Slice(UInt8)?
-
#convert(html = nil)
Start convertion - if
html
is omitted (nil) a URL to fetch is required -
#set(key : String, value : String)
Set a setting value - see pagePdfObject
-
#set_output(path : String)
Set output path
-
#set_url(url : String)
Set URL to fetch content from