[reportlab-users] Adding annotations to a pdf

pianoslum pianoslum at mailbox.org
Sun Dec 9 17:37:47 EST 2018


Dear all,

using reportlab in python, I manged to print a text and export this to a 
new pdf:
canvas.drawString(10, 100, "Hello world")

However, I didn't manage to add an annotation. I tried

canvas.highlightAnnotation("TEST", Rect=[1, 1, 1, 1], relative=1)

which didn't raise an error, however evince cannot parse the resulting 
pdf file.
Am I doing something wrong? The docu of the related functions is very 
sparse, so I would appreciate any help.

Cheers!



More information about the reportlab-users mailing list