Hi all: I am using iText API to convert images to pdf and was trying to preserve the image resolution when displayed in pdf file and the getDpiX() and getDpiY() methods which returns the DPI for the original image are returning zero values where as the values returned to other type of images are alright. can some help me in this.
The .jpg images I tried had 96 DPI on both X and Y, but the methods returned zero values and I was not able to even setDpi()for the image displayed in pdf.
Do you have reason to believe that using an image with iText changes its DPI? In other words, is it necessary to do this? That goes back to my previous question of whether the image quality is actually worse.
Yes iText by default changes the resolution to 72 DPI for any image which is displayed in pdf so it decreases the clarity and this is the main problem.