[reportlab-users] pdfgen and dotted lines
Tim Roberts
timr at probo.com
Tue Feb 6 11:59:27 EST 2007
A.M. wrote:
> Hi all,
>
> I am fairly new to using pdfgen but quickly gaining experience. I am
> currently creating a document that requires the use of dotted lines
> that connect to bodies of text. This is exactly like using a word
> processor and custom tab stops with trailing periods. If that does not
> make sense then a quick example:
>
> Some text goes
> here.......................................................................followed
> by the trailing dot.
> Text
> 1......................................................................................................
> this is right aligned.
> Different widths should be
> handled.............................................................................correctly.
>
> Is that possible? I was doing it before by drawing directly on the
> canvas, however, I think using flowables is a better design and way
> more maintainable in the long run. Any help would be appreciated!
A month or so ago, I posted a version of Paragraph that could expand
left, right, and centered tabs with space, dot, and dash fills. You
might check the archive.
Of course, internally all it does is "draw directly on the canvas", but
hiding it inside another class makes it feel more encapsulated.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the reportlab-users
mailing list