-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Hello! Is there the plan to support multiple lines in the textWithLink annotation?
As the documentation points out, it only supports single line text atm.
If the text is broken into multiple lines, the clickable link area should be extended to all lines, not only the first line.
In the following example only the first line can be clicked, but it would be great if the second line can be clicked too:
var link = "http://very-long-http-link-to-generate-a-line-break.com/second-line-starts"
var doc = new jsPDF();
doc.setFontSize(20);
doc.textWithLink(link, 20, 30, { maxWidth: 160, url: link});
doc.save('Test.pdf');
mayvazyan