[reportlab-users] Printing Variable Length String
Rich Shepard
rshepard at appl-ecosys.com
Wed Nov 7 16:27:53 EST 2007
On Sun, 4 Nov 2007, timr at probo.com wrote:
> ... but it really isn't that hard to do word-wrapping on your own. You
> can split() the string on white space, and keep adding words one at a time
> until the stringWidth() exceeds the length you want, and then back off one
> word.
Has anyone a working algorithm to do this? The one I'm working on seems
excessively bulky and complex; I'm sure there's an easier way.
Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
More information about the reportlab-users
mailing list