Ary Junior wrote:

Please, about the code below, how can I put the two images and the text inside the paragraph without break lines. The images and the text must be in the same line of the paragraph.

...
PdfWriter.getInstance(document, new FileOutputStream("test.pdf"));
document.open();
Paragraph p = new Paragraph();
Image img1 = Image.getInstance("image1.gif");
Image img2 = Image.getInstance("image2.gif"));
p.add(img1);
p.add(img2);
p.add(new Chunk("Test with image inside paragraphs."));
document.add(p);

This is too difficult to explain in a mail.
The best solution depends on the data.

- Try setting the alignment of the image.
- Try wrapping the image inside a Chunk.
- Probably, you'll be better off using ColumnText
 or MultiColumnText.

br,
Bruno


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to