html2pdf.js
html2pdf.js copied to clipboard
The text is positioned below some of its styles (eg background, strikethrough text, list bullets). Or styles above the text.
Hello everyone. Problems on sreens. 1st screen is initial html, 2nd is generated pdf from this html. Total 3 problems, 6 screenshots. If you have any idea what's a problem, please help) The text is positioned below some of its styles.

Pdf configs private readonly _pdfConfigs = { margin: 36, pagebreak: { mode: ['avoid-all', 'css', 'legacy'] }, html2canvas: { scale: 2, letterRendering: true }, jsPDF: { unit: 'pt', orientation: 'portrait' }, };
Chrome, Linux
Hi @Roman178 Dis you find a solution? I'm having the same issue. Thanks
@Elohina Good day!
I insert <style>img { display: inline }</style> in html that will be generated to pdf.
And it helped me.
Got same problem
@Roman178 Thanks for the tip! It does solve the problem to some degree.