Re: reportlab-users Digest, Vol 141, Issue 1
Kaviraj Kanagaraj <[email protected]>
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <CAO36yJ5nk0YxCrF=2yWrAQ-kDkikQS5tTHVCDDf8Fo_d3UUFvg@mail.gmail.com> |
Thank Roberts On Fri, Aug 14, 2015 at 11:14 AM, < [email protected]> wrote: > Send reportlab-users mailing list submissions to > [email protected] > > 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 > [email protected] > > You can reach the person managing the list at > [email protected] > > 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 <[email protected]> > To: USERS REPORTLAB <[email protected]> > Subject: [reportlab-users] Handling Ragged Lines in reportlab > Message-ID: > < > CAO36yJ5p4Y_OHmxt7Xeoug_xi8+icK_NzN7ZZpG0d9h_jkwLdA@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 <[email protected]> > To: reportlab-users <[email protected]> > Subject: Re: [reportlab-users] Handling Ragged Lines in reportlab > Message-ID: <[email protected]> > 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, [email protected] > 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 > [email protected] > https://pairlist2.pair.net/mailman/listinfo/reportlab-users > > > ------------------------------ > > End of reportlab-users Digest, Vol 141, Issue 1 > *********************************************** >