当我的 HTML 代码在标签中包含长文本时<ul><li>my long text...</li></ul>
,在行尾,在 PDF 生成之后,文本不会换行,而是放在 PDF 右边距之后。
因为它,我的 PDF 的结构不正确。
感谢您的宝贵帮助!
I've used some of these HTML -> PDF tools and you have to remember something: none of them is perfect. Something will work wrong, or different as you wanted to in them. The one I've been able to build more complex HTML structures (and make them work in PDF) is mPDF, give it a try if you want!
Aside from that, your question isn't basically a question, you aren't giving any code example, or anything, we can't know for sure if the problem is html2pdf or your code.