Word wrap in generated PDF (using jsPDF)?

后端 未结 6 2045
梦毁少年i
梦毁少年i 2020-12-01 06:06

what I\'m doing is using jsPDF to create a PDF of the graph I generated. However, I am not sure how to wrap the title (added by using the text() function). The length of the

6条回答
  •  误落风尘
    2020-12-01 06:32

    When we use linebreak in jsPDF we get an error stating b.match is not defined, to solve this error just unminify the js and replace b.match with String(b).match and u will get this error twice just replace both and then we get c.split is not defined just do the same in this case replace it with String(c).match and we are done. Now you can see line breaks in you pdf. Thank you

提交回复
热议问题