A complete example, please. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Michael Glauche > Sent: Thursday, December 16, 2004 3:10 PM > To: itext-questions > Subject: [iText-questions] ColumnText and Paragraphs ... > > Hi, > I found another problem with ColumnText and the composite > mode: When > i set the Paragraph.setKeepTogether(true) attribute of some > paragraphs > and add them to a 2 row Columntext, the paragraph where the > split is is > correctly moved to the 2nd column. But the "rest" of it is > still on the > first part, so it looks basicly like this ("S" is the start) > > S111 S222 > 1111 2222 > 1111 2222 > 2222 > S222 2222 > 2222 > ---- ---- > > > How can remove the incomplete part on the first column ? Do i > need to do > a simulation run first ? > > Basicly the code looks like this now: > > Paragraph p = new Paragraph("Lore ipsum ..."); > p.setKeepTogether(true); > > ct.addElement(p); > ct.addElement(p); > ct.addElement(p); > > ct.setSimpleColumn(20, 100, 200, 550, 8, Element.ALIGN_LEFT); > int > status = ct.go(); > if (status == ColumnText.NO_MORE_COLUMN) { > ct.setSimpleColumn(220, 100, 400, 550, 8, Element.ALIGN_LEFT); > ct.go(); > } > > regards, > Michael > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions >
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions