class Wkhtmltopdf::WkPdf

Defined in:

wkhtmltopdf/wk_pdf.cr

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 object_setting(key : String, value : String) #

Pdf object settings - see pagePdfObject


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

Pdf global settings - see pagePdfGlobal


[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]