I am having a problem with creating a table that has 2 columns, each with an image.  
The images are of different types: some of them are template-based (from drawing an 
applet to a PdfTemplate) and some of them are iText supported GIFs and JPEGs.  I am 
using PageSize.LETTER as the page size, and one image has a width of 214 pixels while 
the other is 350 pixels wide.  The magins are set for 1 pixel.  Since PageSize.LETTER 
is a rectangle with a width of 612, both should fit without resizing next to one 
another.  

When I create the images and insert them into a 2-column table, one of two things 
happens:

1) Only one cell shows, and it takes up the entire page width.
2) Both cells show, but one has no image in it.

I have tried many different table settings, but none seem to allow both images to 
display.  iText also seems to resize the images, even though this is unnecessary, 
since there is plenty of space.  (It also resizes the images even when there is only 
one column!)

I would appreciate some help with the table settings to make it render correctly.  
Another option I had though of was to create an image sub-class that would not allow 
itself to be resized, so that the table would try to resize the image (even when it 
doesn't need to) and would get back the full size image as it should be displayed.  
However, in order to do this, I would need to find the location in the table code 
where this is done so I can override the appropriate method(s).  

I have looked and will continue to pursue this and other solutions to this problem, 
and appreciate any assistance in this matter

Ryan Johnston
 


__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/



-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to