def initialize(url_file_or_html, options = {})
@source = Source.new(url_file_or_html)
@stylesheets = []
options = PDFKit.configuration.default_options.merge(options)
options.delete(:quiet) if PDFKit.configuration.verbose?
options.merge! find_options_in_meta(url_file_or_html) unless source.url?
@root_url = options.delete(:root_url)
@protocol = options.delete(:protocol)
@renderer = WkHTMLtoPDF.new options
@renderer.normalize_options
raise NoExecutableError.new unless File.exists?(PDFKit.configuration.wkhtmltopdf)
end