[reportlab-users] TextAnnotation on a pdf document

Florian Reiser florian_reiser at gmx.de
Mon Jan 10 11:09:15 EST 2005


Hello Robin,

thanks for your help.
It's working nicely.

Greets
Florian

> Florian Reiser wrote:
> > Hello,
> > 
> > I have found the class TextAnnotation in reportlab.pdfbase.pdfdoc and
> want
> > to use it. How do I tell reportlab in platypus mode to place a
> > TextAnnotation on a specific position? e.g. page 1
> > 
> > Greets
> > 
> > Florian
> > 
> >from reportlab.pdfgen.canvas import Canvas
> 
> c = Canvas('tannot.pdf')
> 
> c.drawString(72,72,'Hello World!')
> c.textAnnotation0('Annotate\nThe\nWorld!', Rect=(144,144,72,72), 
> name='myFirstTextAnnotation')
> c.save()
> 
> -- 
> Robin Becker
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
> 

-- 
+++ Sparen Sie mit GMX DSL +++ http://www.gmx.net/de/go/dsl
AKTION für Wechsler: DSL-Tarife ab 3,99 EUR/Monat + Startguthaben


More information about the reportlab-users mailing list