I \'m trying to get information about scanned images that are saved into PDF files through iText (using Java).
Using the answer and comments, I got width and height
Let's split this problem into two separate problems. To calculate the DPI, you need two sets of values: a number of pixels and a distance in inch.
wPx and wPx.wInch and hInch.Now you can calculate the DPI in the x direction like this: wPx / wInch and the DPI in the y direction like this: hPx / hInch.