Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] How to set the Image size in the columns.

bright_shine

2007-09-03



Hi friends !

 I want to set the image size in the columns.
The Image object has a method setWidthPercentage(), but use this method, the
picture show not by it's real size.

for example:
 PdfContentByte cb;
 ColumnText ct = new ColumnText(cb);
 Image img = Image.getInstance("chapter05/resources/dog.gif");
 ct.addElement(img);
 ct.go();

In the columns I want to show the picture's real size. Who can told me!!
Thanks.


--
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.