Create a duplicate of the ColumnText (see the javadocs) to be able to simulate and go back.
Best Regards, Paulo Soares > -----Original Message----- > From: Vijay Karthik [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 14, 2004 5:37 PM > To: Paulo Soares > Cc: [EMAIL PROTECTED] > Subject: Re: [iText-questions] multiple columns - Even > spacing in bottom > > Paulo > > The algorithm i used in the other C application ( which is being > retired ) is to calculate the height of a given block ( which maps to > a chunk in iText ) and add that to a column table. Before adding i > check to see if the block will fit, if not i then go back and redo the > spacing between the blocks in that column table. > In iText i can get the YLine based on that i can figure out how much > space will be left empty in a give columnText. How do i go back to > readjust the space between chunks in a given columnText. > > BTW. iText is pretty cool and i really appreciate all the hard work > that has been put in to get this library out to people like me :-) > > Thanks for your help once again > > Vijay > > > On Tue, 14 Sep 2004 10:18:29 +0100, Paulo Soares > <[EMAIL PROTECTED]> wrote: > > Do you know what algorithm the other library is using to > balance the columns? This is just a question of layout. > Measure the height of each of your address blocks and place > them evenly in the column. > > > > Best Regards, > > Paulo Soares > > > > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On > > > Behalf Of Vijay Karthik > > > Sent: Tuesday, September 14, 2004 1:05 AM > > > To: [EMAIL PROTECTED] > > > Subject: [iText-questions] multiple columns - Even > spacing in bottom > > > > > > Hello > > > > > > I'm having trouble in adding data into a ColumnText so > that the column > > > looks even. Once a chunk doesnt fit into a column text > some amount of > > > space is blank on column text. What i want to do is even > out the other > > > chunk items in the column text so that the space in the > bottom looks > > > even across all column texts. > > > > > > > > > See attached examples. > > > > > > 1) iText-Example.png - shows what was generated using > iText and what > > > problem i'm facing > > > > > > 2) C-PDFWriter-Example.png - PDF Generated using a C library. > > > > > > I want the PDF generated using iText to look similar to the one > > > generated using C library. > > > > > > > > > Any thoughts/suggestions would be appreciated. > > > > > > Thanks for your help in advance > > > > > > Vijay > > > > > > ------------------------------------------------------- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
