Hello all, Hope you can help me with my little conundrum here. I'm having problems scaling images in RTF generation using iText.
Below is the code i use to generate an image of a map in an RTF document: try { com.lowagie.text.Image mapsignature = com.lowagie.text.Image.getInstance("pics/map.jpg"); mapsignature.scalePercent(200); document.add(mapsignature); } catch(Exception de) { System.err.println(de.getMessage()); } And as a reference, the file in question 'map.jpg' is: - a JPEG image, - has the following dimensions: 557 (W) x 434 (H) - 600 DPI And yet regardless of the dimensions i put into either scaleAbsolute / scalePercent (etc), it still ends up the size as shown below: http://img300.imageshack.us/img300/6558/untitledxm8.jpg Any suggestions as to where i'm going wrong. Regards, basquille -- View this message in context: http://www.nabble.com/Scaling-images-in-RTF--tf2761171.html#a7698084 Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/