[reportlab-users] Finding out the width/height of text

Jotham jotham.read at gmail.com
Mon Jan 18 07:03:38 EST 2010


Hello,

I am wanting to use ReportLab to generate both a bitmap (for live preview in
a client application) and PDF for dispatch to a printer. I have a client
application that allows some basic alterations to be made by the user, for
this to work I need to be able to find out some geometry information for a
given piece of text at a given font and style. I can't see how to do this
in ReportLab. Ideally I would be able to render out just the text in
question to a bitmap surface of some kind, work with that, and once
everything is finalised generate the PDF.

Any help would be appreciated,

Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20100119/e3b9cfc7/attachment.html>


More information about the reportlab-users mailing list