class Wkhtmltopdf::WkImage

Defined in:

wkhtmltopdf/wk_image.cr

Constant Summary

FORMATS = ["jpg", "png", "bmp", "svg"]

Constructors

Instance Method Summary

Constructor Detail

def self.new(path = "") #

Prepare the structure


[View source]

Instance Method Detail

def buffer : Slice(UInt8)? #

[View source]
def convert(html = nil) #

Start convertion - if html is omitted (nil) a URL to fetch is required


[View source]
def set(key : String, value : String) #

Set a setting value - see pagePdfObject


[View source]
def set_output(path : String) #

Set output path


[View source]
def set_url(url : String) #

Set URL to fetch content from


[View source]