Forum How do I...?

Disable all links

killroyboy
Is there a way to disable all links in a prince converted PDF? I have links in my HTML that I don't want to display as links in the PDF.
mikeday
Yes, try this CSS rule:
* { prince-link: none ! important }

You can also make the selector more specific to disable only some of the links in your document.
amyd
I've tried to implement

{ prince-link: none ! important }

but it doesn't work if someone writes, say:

https://google.com

I also tried pointer-events: none !important.

Any suggestions?
Thanks!
mikeday
Some PDF viewers might treat all text that looks like URLs as links, I don't think this can be disabled.
amyd
Thank you for the quick response.