Type = null; if (extension === 'jpg' || extension === 'jpeg') { mimeType = 'image/jpeg'; } else if (extension === 'png') { mimeType = 'image/png'; } else { extension = 'jpg'; mimeType = 'image/jpeg'; } var a = $("<a style='display:none' id='js-downloder'>"...
To overcome the lack of support for --user-style-sheet option by wkhtmltoimage 0.10.0 rc2 as reported here http://code.google.com/p/wkhtmltopdf/issues/detail?id=387require 'imgkit' require 'restclient' require 'stringio' url = 'http://domain/path/to/stylesheet.css' css = StringIO.new...