You can have the same result with a list and a chunk with image as the symbol.
> -----Original Message----- > From: Andreas Meyer [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 12, 2005 4:45 AM > To: Paulo Soares > Cc: [email protected] > Subject: Re: RE: [iText-questions] Bug with > List/Paragraph/ColumnText ? > > > Hmmm, bad luck. > > Is there another way to get a substitution for "new > Chunk(String content, Font > font, float offsetX)" ? Please have a look at my posting > named "Re: Re: > Question/Problem with mailing list?" from 2005-04-09 17:52:49 > GMT to see what > I want to achieve. > > Best regards, > Andreas Meyer > > > > That's by design. ColumnText doesn't support lists or tables inside > > paragraphs. > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On > > > Behalf Of Andreas Meyer > > > Sent: Monday, April 11, 2005 1:43 AM > > > To: [email protected] > > > Subject: [iText-questions] Bug with List/Paragraph/ColumnText ? > > > > > > Hi, > > > > > > I have tried to get something that works like > > > > > > new Chunk(String content, Font font, float offsetX) > > > > > > using a list, containing a single line of text. But if I add > > > the list to a > > > paragraph and the paragraph to columntext, the output is broken. > > > > > > try { > > > > > > PdfWriter writer = PdfWriter.getInstance(document, > > > new FileOutputStream("List_test.pdf")); > > > > > > document.open(); > > > > > > PdfContentByte cb = writer.getDirectContent(); > > > > > > ColumnText ct = new ColumnText(cb); > > > > > > ct.setSimpleColumn(50, 50, 800, 800); > > > > > > Paragraph p1 = new Paragraph(); > > > > > > List list = new List(true, 20); > > > list.add(new ListItem("First line")); > > > list.add(new ListItem("The second")); > > > list.add(new ListItem("Third line")); > > > > > > p1.add(list); > > > > > > ct.addElement(p1); > > > > > > ct.go(); > > > > > > } > > > > > > Looks like a bug ? > ------------------------------------------------------- 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://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
