[reportlab-users] Turn off automatic mailto links?

Robin Becker robin at reportlab.com
Wed Jul 29 09:33:30 EDT 2009

Roberto Alsina wrote:

> On Wednesday 29 July 2009 07:25:36 Robin Becker wrote:

>> I'm fairly sure that is being done by the display application rather than

>> anything we do. I looked at what's produced by your example


>> > BT 1 0 0 1 0 5.17 Tm /F2 10 Tf 12 TL (example at example.com) Tj T* ET


>> so our code isn't doing anything to promote the idea that we want a link.

>> Even so, acrobat demented reader insists on showing it as a clickable

>> mailto link. I've tried a few experiments and nothing obvious seems to do

>> the right thing.


> How about replacing the @ with a unicode homograph? I am not even sure there

> is one, and the font problems would be ghastly, though.


I'm almost sure that would work as would using an image of the right size. I've
tried fakery like person<font/>@<font/>email.com, but though the text is broken
up into separate chunks, acrobat still sees it as a link.

The only problem with the homograph ide is that most fonts won't have one
easily. I suppose we could modify the encoding to support the right behaviour
and or embed a single glyph etc etc.

Even if we over come that we then have a document where if we search for
example at example.com then it wouldn't be found even though it's in plain view.
Robin Becker

More information about the reportlab-users mailing list