[reportlab-users] reportlab-users Digest, Vol 141, Issue 1

Kaviraj Kanagaraj kaviraj at launchyard.com
Mon Aug 17 12:32:18 EDT 2015


Thank Roberts

On Fri, Aug 14, 2015 at 11:14 AM, <
reportlab-users-request at lists2.reportlab.com> wrote:

> Send reportlab-users mailing list submissions to
>         reportlab-users at lists2.reportlab.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://pairlist2.pair.net/mailman/listinfo/reportlab-users
> or, via email, send a message with subject or body 'help' to
>         reportlab-users-request at lists2.reportlab.com
>
> You can reach the person managing the list at
>         reportlab-users-owner at lists2.reportlab.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of reportlab-users digest..."
>
>
> Today's Topics:
>
>    1. Handling Ragged Lines in reportlab (Kaviraj Kanagaraj)
>    2. Re: Handling Ragged Lines in reportlab (Tim Roberts)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 13 Aug 2015 18:04:37 +0530
> From: Kaviraj Kanagaraj <kaviraj at launchyard.com>
> To: USERS REPORTLAB <reportlab-users at reportlab.com>
> Subject: [reportlab-users] Handling Ragged Lines in reportlab
> Message-ID:
>         <
> CAO36yJ5p4Y_OHmxt7Xeoug_xi8+icK_NzN7ZZpG0d9h_jkwLdA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Everyone,
>
> I am using reportlab to generate pdf with text and images. I am facing
> problem when using Paragraph in reportlab. Im using center alignment. But I
> see some paragraph have one or two words at the last line of the paragraph
> which is not pleasing visually. I have explored about the problem and found
> that I need to handle ragged lines. There is an option called "Balance
> ragged line" in InDesign. What is the appropriate option to be used in
> reportlab? Help me in figuring it out.
>
> P.S: I have raised an issue on reportlab repo and also posted a question in
> google groups but sadly no response.
>
> https://bitbucket.org/rptlab/reportlab/issues/64/handling-ragged-lines-in-reportlab
>
> Thanks in advance.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20150813/1a1b454d/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Thu, 13 Aug 2015 10:56:40 -0700
> From: Tim Roberts <timr at probo.com>
> To: reportlab-users <reportlab-users at lists2.reportlab.com>
> Subject: Re: [reportlab-users] Handling Ragged Lines in reportlab
> Message-ID: <55CCDA58.8070706 at probo.com>
> Content-Type: text/plain; charset="utf-8"
>
> Kaviraj Kanagaraj wrote:
> >
> > I am using reportlab to generate pdf with text and images. I am facing
> > problem when using Paragraph in reportlab. Im using center alignment.
> > But I see some paragraph have one or two words at the last line of the
> > paragraph which is not pleasing visually. I have explored about the
> > problem and found that I need to handle ragged lines. There is an
> > option called "Balance ragged line" in InDesign. What is the
> > appropriate option to be used in reportlab? Help me in figuring it out.
>
> There is no built-in function do this.  You're talking about a rather
> complicated, iterative process here.  I can imagine an implementation
> that just re-runs the line breaking process iteratively, reducing the
> right margin a tiny bit each time, until the last line is closer to
> being full, but you'd have to settle on heuristics.  How full is full
> enough?  How much is too full?  Is it OK to add another line?  I suppose
> you could create a derivative of Paragraph that does this, by wrapping
> breakLines.
>
>
> > P.S: I have raised an issue on reportlab repo and also posted a
> > question in google groups but sadly no response.
>
> What Google group did you use?  As far as I know, this is the only
> mailing list for official and peer support.
>
> --
> Tim Roberts, timr at probo.com
> Providenza & Boekelheide, Inc.
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20150813/19222975/attachment-0001.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
> https://pairlist2.pair.net/mailman/listinfo/reportlab-users
>
>
> ------------------------------
>
> End of reportlab-users Digest, Vol 141, Issue 1
> ***********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20150817/2f48aac1/attachment.html>


More information about the reportlab-users mailing list