javascript - finding the height of text in jspdf -


कोड:

  var doc = new jsPDF ('p', 'mm', [300, 210]); Doc.fromHTML (पाठ, 15, 15, {'चौड़ाई': 175,}); Doc.text (10, ऊँचाई, 'ऊंचाई क्या होना चाहिए, ताकि यह पिछले पाठ के साथ ओवरलैप न हो');  

यह मेरा कोड है लेकिन दो पाठ एक-दूसरे को ओवरलैप कर रहे हैं? क्या ऊँचाई का मूल्य जानने के लिए कोई तरीका है (पता है कि पिछले पाठ कहाँ समाप्त हो रहा है) ऐसा दो जो ओवरलैप नहीं है? पाठ एचटीएमएल स्थिर नहीं है।


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

ios - Subclassing UIView and adding a property -

Powerbuilder 12.1 and DataWindow in Design vs Debug and Executable/Runtime -