jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

Is it possible to disable hyperlinks on pdf file

Open Zumra96 opened this issue 1 year ago • 1 comments
trafficstars

I was wondering is it possible to disable hyperlinks on pdf, when pdf is downloaded i cant select 'https://test.com' like normal string to copy it, I can only click on it and I am redirected to that page.

doc.text('https://test.com', 12, 134)

Zumra96 avatar Dec 21 '23 12:12 Zumra96

Hello,

Try to set a font and then add another text. You will be able to select it by going to the end of the link.

Here is an example :

var doc = new jsPDF();

doc.setFont("times", "italic");
doc.text("https://tests.com", 20, 40);

doc.text("Lorem ipsum dolor",22,150)

GiannyPontat avatar Jan 13 '24 16:01 GiannyPontat

This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.

github-actions[bot] avatar Apr 13 '24 01:04 github-actions[bot]