I am using PDFkit with python to convert an html page to pdf. In the html there is only one image tag in body with src pointing to a complete url like:
<html>
<body style="margin: 0px;">
<img style="-webkit-user-select: none; cursor: -webkit-zoom-in;" src="https://blah.blah.com" height="768">
</body>
</html>
However When I convert html to pdf like this:
pdfkit.from_file(file, 'labels.pdf', configuration=config)
I get a blank page with a box with border instead of image.
Why is pdfkit not converting image?
I read somewhere that we have to give full image path including domain name. But the image url I am providing is complete. Then what I am doing wrong?