I want to add some extra text with external webpage hyperlink to an existing PDF using Python, what is the best way to go about this.
This code is just adding text to pdf but not hyperlink.
Below code add link but it's regenerate new pdf -
from reportlab.platypus import Paragraph, PageBreak, SimpleDocTemplate
from reportlab.lib.styles import getSampleStyleSheet
pdf = SimpleDocTemplate('example.pdf')
story = []
styles = getSampleStyleSheet()
story.append(Paragraph('This <a href="http://google.com/" color="blue">is a link to</a>', style=styles["Normal"]))
pdf.build(story)