Re: [iText-questions] Bug inside MultiColumnText

2009-01-07 Thread 1T3XT info
Leo wrote: > *problem 2)* If I add only irregular columns and I'm in the condition > where maxY < top, it LOOPs You can't just choose any value for left[1]. The method resolvePositions adjusts this value for regular columns, but it didn't adjust them for irregular columns. I changed this. -- Thi

Re: [iText-questions] Bug inside MultiColumnText

2009-01-07 Thread 1T3XT info
Leo wrote: > For *problem 1* I suggested to modify the addElement method, but you > said that "If the columns are rectangular, YOU MUST use addElement", > why? In the chapter 7 of your book it's not forbidden to use addText and > addElement toghether! I tryed my modify adding Chunks and Paragrap

Re: [iText-questions] Bug inside MultiColumnText

2009-01-06 Thread Leo
omething in the ColumnText class beacause if you change my test code using ColumnText you'll find the same problem. Leonardo - Original Message - From: "1T3XT info" To: "Post all your questions about iText here" Sent: Tuesday, January 06, 2009 12:21 PM Subject

Re: [iText-questions] Bug inside MultiColumnText

2009-01-06 Thread 1T3XT info
Leo wrote: If you changed the addColumn order adding column2 first and then column1, it worked but the right column in the page was filled first with a bad graphic effect! With this revision the problem was solved and probably the correct bugfix was to change the simple parameter and not the

Re: [iText-questions] Bug inside MultiColumnText

2009-01-04 Thread Leo
: "Post all your questions about iText here" Sent: Wednesday, December 31, 2008 9:43 AM Subject: Re: [iText-questions] Bug inside MultiColumnText > Leo wrote: >> Hi everybody, >> I found a bug into MultiColumnText class in method addElement. >> The method should

Re: [iText-questions] Bug inside MultiColumnText

2008-12-31 Thread 1T3XT info
Leo wrote: > Hi everybody, > I found a bug into MultiColumnText class in method addElement. > The method should be written like this: > > public void addElement(Element element) throws DocumentException { > if (element instanceof Phrase) { > columnText.addText((Phrase) element); > }

[iText-questions] Bug inside MultiColumnText

2008-12-30 Thread Leo
Hi everybody, I found a bug into MultiColumnText class in method addElement. The method should be written like this: public void addElement(Element element) throws DocumentException { if (element instanceof Phrase) { columnText.addText((Phrase) element); } else if (element instanceof