Forum How do I...?

How do I prevent urls in text from being converted to clickable links in MacOS Preview

jmarion
Hello,
When viewing a pdf generated by Prince in macOS Preview I seem to be able to click on any url inside of a <td> or <div> (etc) like it was a hyperlink (even though it is just text). These urls are not inside of an <a> or link tag or anything they are just plain text. I don't want these urls to be clickable when viewing the pdf.

I'm not sure if this is Prince doing this or Preview itself.
Can somebody please confirm if this is caused by Prince or by the pdf viewer itself?
If this is a Prince feature is there anything that I can do about it?


Steps to reproduce:
Create a Prince pdf containing something like
<div>http://www.princexml.com</div>
and then open it in macOS preview
Expected: Regular text that doesn't link to anything
Actual: The URL is treated like a hyperlink that you can click on to visit that website


Thanks for your help, I can clarify if needed
mikeday
This sounds like Preview trying to be clever; Prince will not turn arbitrary text into links. Perhaps you could trick it by placing a zero width space in the text or something like that?
jmarion
Thank you for confirming that this is just Preview being dumb.