Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Hangs when generating image with valid URL #219

Closed
ahmetabdi opened this Issue · 2 comments

2 participants

@ahmetabdi

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)
@ahmetabdi

Works on heroku with wkhtmltopdf-heroku (1.0.0)

@sigmavirus24
Owner

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
Something went wrong with that request. Please try again.