« Return to Thread: itext jar: java coding pdf with tables and cells-nested tables and using images

itext jar: java coding pdf with tables and cells-nested tables and using images

by Lisa M Barkey :: Rate this Message:

Reply to Author | View in Thread


Hi,
I am using the latest iText 2.1.6 and think there are some issues. (Note: this is a jsp page with java code).  I'm finding two things:

1. I can't put text and an image in a cell together. The text super-imposes over the image (using the barcode128 method from the same jar). Is there any way to add both image and text to a cell so they are side by side. I tried putting the line feed char on the text (\n) and that didn't work. Seems you can append an image and embed in a phrase but not in a cell. Aside from editing the image to add the text I couldn't find a way to get both in the cell without doing a nested table. That caused issue 2 below.

2. Why do I lose borders on a cell when I put a table inside that cell. Nesting a table inside a cell to get a specific layout and only the nested table will show the borders. The outer cell of the parent table won't show borders even if I explicitly turn them on with the set methods (left,right,width,etc.) Only get the outmost table borders- no cell borders on the parent table. Only occurs when you 'addCell(childtable)'.  

Wondering are these bugs? I got something that might work for our purpose but it  isn't exactly what I had originally envisioned since I found these issues. Maybe I'm just going in circles and have missed something! Originally had the older jar versions (1.4,2.15) but seems to work the same in 2.1.6 also.

Just wondering if anyone ran into this and found a solution!


thanks!



Lisa M. Barkey
------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

 « Return to Thread: itext jar: java coding pdf with tables and cells-nested tables and using images