Palmi H Lord wrote:

>am new in the JAVa world but I have a solution for you
>  
>
Both answers given on the list are not correct.
This answer is close:

> String strLogo = lnDoc.getItemValueString("Logo");
>// make a instend of the Logo
>Image imgLogoImage = Image.getInstance(strLogo);
>  
>
OK.

>// place the Logo in a Table
>
>              cell =  new PdfPCell(imgLogoImage);
>  
>
The OP said he was using class Table, then you need Cell, not PdfPCell.
Do not mix both types of tables!

>>Also is there away to put two different object say a picture
>>and some text in a singel cel of a table....if not I'll just make another 
>>column.
>>
You could create the cell with an image and then use method add with
a paragraph. Note that the text will be below the image. That may not
be what you want (you talk about making another column).
You could nest tables; ie create an inner Table with the image and the text
and put this table inside a cell of the outer Table.
You could also put the image inside a Chunk object; and the Chunk inside
a Paragraph. None of these solutions are very elegant, nor are they 
guaranteed
to work. Why not use PdfPTable?
br,
Bruno


_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to