You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
Description
when using @media print styles with the flag --print-media-type, all other css loads etc. but all my images do not display in the pdf. If I remove this flag, the images work again. I use @media print to set chapter breaks to new pages etc.
How to reproduce wkhtmltopdf --print-media-type --enable-local-file-access compiled.html compiled_wkhtml.pdf - no images wkhtmltopdf --enable-local-file-access compiled.html compiled_wkhtml.pdf - images but now my chapter breaks are not loaded
FWIW, I took the same HTML in chrome and "printed" it and it works with images. The only issue with this approach is that it doesn't generate the "bookmarks" and I cannot add additional items like cover images, footers, etc. This is the full "ideal" command I want to use:
wkhtmltopdf version(s) affected: wkhtmltopdf 0.12.6 (with patched qt)
OS information
OSX 12.6.1
Description
when using @media print styles with the flag --print-media-type, all other css loads etc. but all my images do not display in the pdf. If I remove this flag, the images work again. I use @media print to set chapter breaks to new pages etc.
How to reproduce
wkhtmltopdf --print-media-type --enable-local-file-access compiled.html compiled_wkhtml.pdf
- no imageswkhtmltopdf --enable-local-file-access compiled.html compiled_wkhtml.pdf
- images but now my chapter breaks are not loadedcss:
Expected behavior
images should be displayed on pdf
Possible Solution
This looks like a css rendering issue. happy to hack css further if needed.
The text was updated successfully, but these errors were encountered: