[reportlab-users] Dot separators in text

Jim Steil jim at qlf.com
Fri Dec 1 16:48:31 EST 2006


Thanks a bunch for the samples. I didn't have time to get into them today,
but will get into it next week. I really appreciate the help!


-----Original Message-----
From: reportlab-users-bounces at reportlab.com
[mailto:reportlab-users-bounces at reportlab.com] On Behalf Of Tim Roberts
Sent: Friday, December 01, 2006 1:20 PM
To: Support list for users of Reportlab software
Subject: Re: [reportlab-users] Dot separators in text

Jim Steil wrote:


> Hi,


> I'm trying to create a PDF that has a table in it that looks like the

> attached picture. Can anyone point me down the right path to get the

> dot separators between the two ends of the line? The width of the text

> on both ends of the line may vary and I'd prefer to not have to

> calculate how many dots need to be included so that both the right and

> left edges are justified.


Attached is a slightly more flexible drawTabbedString handler, which
handles left, center, right, and decimal tabs, with space, dot, dash,
and underline fill.

I have this accept a string with embedded \t tab characters. It would be
cleaner to have it accept a list or tuple, thus allowing the caller to
split the string using other separators, but that makes the name a bit
less meaningful.

Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

More information about the reportlab-users mailing list