Skip to content

Feature Request: textWithLink multiple line support #3253

@simse07

Description

@simse07

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');

Test.pdf

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions