Why do you need a list inside a paragraph? The only result is the ability to
use the paragraph indents and you can do the same with ColumnText.

----- Original Message ----- 
From: "Andreas Meyer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Tuesday, April 12, 2005 7:51 PM
Subject: Re: RE: RE: [iText-questions] Bug with List/Paragraph/ColumnText ?


>
> Sorry, but you just told me that ColumnText doesn't support lists inside
> paragraphs.
>
> My paragraphs contain text, images and text with background-images,
because I
> need setKeepTogether(). You helped me a lot to align the background-image
> vertically with the text [setGenericTag,
getDirectContentUnder().addImage()].
> Now I need to find out how to move the text horizontally to any position I
> want. I need to move the text, not the image. Using
ct.setFollowingIndent() is
> no option.
>
> I just want to label images at exact, configurable positions.
>
> Is there a recommended way to achieve this?
>
> Best regards,
> Andreas Meyer
>
>
> > 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_id=6595&alloc_id=14396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to