I'm facing some issues while creating tables in jspdf. I could not find any good related docs, but if anyone knows one, please share.
I found two related methods:
1) doc.getStringUnitWidth(text, {widths:12,kerning:2});
2) doc.getTextDimensions(text)
What does widths and kerning mean in the first method? What should I provide? Which method should I use to get the width and height of text?
My goal is to solve some issues related to overlapping cell content, wrapping of text and text overflow relative to the page width.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…