I am trying to add a JPEG image to a pdf document created via iText. When
the pdf comes out , I can clearly see that its a bit bigger(hence not as
sharp) than the original image. I am using adobe pdf reader to see this pdf
& the pdf is being seen at 100%( no zoom in , no zoom out).

I am just adding the image , not doing any scaling etc:

Image img = Image.getInstance(logo.jpg);
img.setAbsolutePosition(36, 750f);
writer.getDirectContent().addImage(img);

Also, When i click this upscaled image in adobe pdf , copy it and paste it
to paint ; it looks the same size as original(its Not upscaled & is sharp).

Should i be doing anything special in itext while adding the image?
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to