style hyperlinks in reportlab pdfs

1.5k views Asked by At

I am using rst2pdf to generate a PDF. I am using links to sections and they appear as hyperlinks in the PDF. If I hover over the link I can see it says "Go to page XXX". Is there a way to insert that page number into the text, so that it can be seen on hardcopies?

1

There are 1 answers

0
Juiceyang On

I'm starting using reportlab recently. Maybe you need to use the superscript tag?

p = Paragraph("<link href='http://someurl' color='blue'><u>Some text</u><super> [goto page xx]</super></link>", customstyle)

What it may looks like