django-wkhtmltopdf icon indicating copy to clipboard operation
django-wkhtmltopdf copied to clipboard

Prepend scheme and hostname to relative links

Open vCra opened this issue 7 years ago • 0 comments

Currently, when generating a pdf from a html file, I have to prepend {{ request.scheme }}://{{ request.get_host }} inside of my html, so that wkhtmltopdf will be able to access. Before the html is sent off to wkhtmltopdf, it should be parsed to check if any relative links are present, and if so, change them so that they are absolute.

vCra avatar Jul 21 '17 08:07 vCra