[reportlab-users] Turn off automatic mailto links?

David Ostroske eksortso at gmail.com
Tue Jul 28 14:57:39 EDT 2009


Can somebody please show me how to write email addresses (or strings
that look like email addresses) without having them treated like
mailto links in Adobe Reader?

The documentation contains email addresses without links, so it must
be possible. But code as simple as the following makes a mailto link
out of example at example.com automatically.

from reportlab.platypus.doctemplate import SimpleDocTemplate
from reportlab.platypus.paragraph import Paragraph
from reportlab.lib.styles import ParagraphStyle

doc = SimpleDocTemplate('C:/TEMP/test.pdf')
defaultstyle = ParagraphStyle(name='default')
story = [Paragraph("example at example.com", defaultstyle)]
doc.build(story)

-- Dave O


More information about the reportlab-users mailing list