Hangs when generating image with valid URL #219

Closed
ahmetabdi opened this Issue Jan 6, 2014 · 2 comments

Comments

Projects
None yet
2 participants

I've got this method which replaces all img tags in the html adding the request.protocol and request.port but wkhtmlpdf is hanging.

def replace_img_tags(content)
    doc = Nokogiri::HTML(content)
    img_srcs = doc.css('img').map{ |i| i['src'] = "#{request.protocol + request.host_with_port + i['src']}" }
    doc.to_html.html_safe
end

Using

pdfkit (0.5.4)
wkhtmltopdf-binary (0.9.9.1)

Works on heroku with wkhtmltopdf-heroku (1.0.0)

Contributor

sigmavirus24 commented Aug 7, 2014

The description of the behaviour you provide indicates to me that this is a problem with wkhtmltopdf and not pdfkit. Please report this on their bug tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment