html2pdf.js
html2pdf.js copied to clipboard
text-overflow: ellipsis is not working
Hi, I was wondering if there is a feature for html2pdf that I am not aware of, where you are able to use text-overflow: ellipsis (truncate the text) to display an ellipsis ('…')?
For example, I have tried using this CSS class selector for some fields to display an ellipsis ('…') when the text passes the max width, but nothing happened in the pdf.
.field .input .content {
margin-left: 8px;
overflow: hidden;
text-overflow: ellipsis;
}
I also added white-space: nowrap; in the same CSS class selector above, but nothing happened as well.
What do you mean with "nothing happened in the pdf"
This is a problem from html2canvas.js I myself still have no idea how to solve this