reportlab PDF中的样式超链接

2024-04-28 23:53:39 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用rst2pdf生成PDF。我使用的链接到节,他们显示为超链接在PDF。如果我把鼠标悬停在链接上,我可以看到上面写着“转到第XXX页”。有没有办法把页码插入文本中,以便在硬拷贝上看到?在


Tags: 文本pdf链接xxxrst2pdf办法页码
1条回答
网友
1楼 · 发布于 2024-04-28 23:53:39

我最近开始使用reportlab。也许你需要使用上标标签?在

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

What it may looks like

相关问题 更多 >