Sorry for posting twice, I forgot the subject. Any pointer appreciated.

 I’m converting a page from TIFF to PDF,
 However, the PDF contents look smaller than in the original 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!
Niko.

 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();

_________________________________________________________________
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct
-------------------------------------------------------------------------
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/

Reply via email to