WkHTMLtoPDF not loading local CSS and images
If your are on linux check the ownership of your images. For windows you will find some info on http://code.google.com/p/wkhtmltopdf/wiki/Usage.
I tried different kind of paths to the image:
<img src="file:///var/www/testpdf/flowers.jpg"><br>
<img src="./flowers.jpg"><br>
<img src="flowers.jpg"><br>
<img src="/var/www/testpdf/flowers.jpg"><br>
all images are showed correct. I didn't use any command line arguments
(only wkhtmltopdf /var/www/testpdf/makepdf.html makepdf.pdf
)
KnpSnappyBundle - wkhtmltopdf: CSS/images are loaded but not scripts
I see you're using bootstrap 4 (flexbox). This is not supported in wkhtmltopdf stable version (0.12.x). For further information see here. Unfortunately there is no development activity at the moment, so it can take a long time until this will be supported.
There are some not complete alternatives like puppeteer (doesn't have TOC at the moment).
wkhtmltopdf wont take images inside html files
The windows version of wkhtmltopdf 0.11.0 rc1 does not support gif images. Workaround: preprocess all images in incoming HTML and convert them into jpgs.
Issue described in: http://code.google.com/p/wkhtmltopdf/issues/detail?id=441
Gifs work in wkhtmltopdf 0.9.9.
Related Topics
Are Multi-Line Options in HTML Select Tags Possible
How to Set Favicon.Ico Properly on Vue.Js Webpack Project
How to Center Cards in Bootstrap 4
Mailto Links Do Nothing in Chrome But Work in Firefox
How to Use a Grammar with The HTML 5 Speech Input API
Schema.Org Newsarticle: Invalid Value for Logo Property
Why Is The First Element Always Blank in My Rails Multi-Select, Using an Embedded Array
How to Correctly Use "Scoped" Styles in Vuejs Single File Components
Overlapping/Overlaying Multiple Inline Images
How to Print a Portion of an HTML Page
How to Specify The Order of CSS Classes
Include HTML Files in R Markdown File
Why Does Chrome 80 Cause This Grid-Template-Rows: Auto Problem
Firefox 30 Is Not Hiding Select Box Arrows Anymore
Adding Style to File Upload Button in CSS