Using WKHtmlToPDF to generate PDFs for my company’s web-based mapping service.
Essentially, I take a template HTML file, inject an image into a div, save the HTML to disk and use WKHtmlToPDF to render to PDF.
Now, on most templates it works a treat. On one particular one though, where the image should be (int the pdf) is a grey area. HOWEVER, if I right click on the grey area, and select “Save Image As…”, the saved image is correct.
Linked are the created PDF and the HTML on which it is based. Help required most urgently, and hints appreciated.
Don’t know WHY this worked, but adding the “–disable-smart-shrinking” option, and/or removing the “-n”(Disable Javascript) option, fixed it.