I’m converting a page from TIFF to PDF, HOwever, the PDF image looks smaller that the TIFF. The two files have the same size. I tried changing the 500/700 used in scaleTofit without any luck. Is there a way for me to map the size one to one from TIFF to PDF?
Thank you much! document.open(); contentByte = writer.getDirectContent(); RandomAccessFileOrArray ra = null; ra = new RandomAccessFileOrArray(imageContent.getContent()); Image img = TiffImage.getTiffImage(ra, 1); if (img != null) { if (img.getScaledWidth()> 500 || img.getScaledHeight()> 700) { img.scaleToFit(500, 700); } img.setAbsolutePosition(20, 20); //document.add(new Paragraph("page " + (pages + 1))); contentByte.addImage(img); document.newPage(); ++pages; _________________________________________________________________ Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews ------------------------------------------------------------------------- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/