Search text heights in jspdf

the code:

 var doc = new jsPDF('p', 'mm', [300, 210]);
 doc.fromHTML(text, 15, 15, {
        'width': 175, 
 });

 doc.text(10, HEIGHT, 'What should be height so it does not overlap with previous text');

Here is my code, but two texts overlap each other? Is there any way to know the value of HEIGHT (you know where the previous text ends), so that the two do not overlap? html text is not static, it changes.

+4
source share

All Articles