Open shivamcipl opened 4 years ago
What is the image source you are using to show the Images, If you are using local images, then you need to give the absolute path of the image file in the source
<img src="file:///C:/wamp/www/site/img/mypicture.jpg"/>
Notice the file:///
in the path
same here
same here
@AndroConsis I was using,
<td class="logo-area" style="padding: 20px 50px 20px 50px;"><img src="logo-brand-10.png" alt="" /></td>
And the file:///
path I have provided in the options
tag of html-pdf like,
base: 'file://' + path.resolve('public/files/uploads/') + '/'
For me the issue has been resolved when i removed format A4 from the config (left it with out format just width and height)
Setting the image's class to position: relative;
fixed it for me.
My options:
var options = { width: '210mm', height: '297mm', format: "A4", }
Hi, I tried converting HTML with images to PDF. But the image is transparent after the conversion.