title: Fitting image into PDF using ITEXT
body: <p>Hi im having some problems to add the image into the PDF using the itextPDF...</p>
  
  <p>i have more than 10.000 images scanned from original paper in past years, and different sizes/pixels </p>
  
  <p>when i add image into pdf using </p>
  
  <p>img.scaleAbsolute(823,640)
  or
  img.scaleToFit(823,640)</p>
  
  <p>doesnt change the result of each image, for example this ones:</p>
  
  <p>First One 654 is the correct one that fit perfectly in the pdf PAGE, the original tiff image has  (2048 x 2929)</p>
  
  <p>here image -> <img src="https://i.stack.imgur.com/irQoA.png" alt="enter image description here"></p>
  
  <p>here is the second one 9436 that original tiff image has (1470 x 2057)</p>
  
  <p><img src="https://i.stack.imgur.com/QEymj.png" alt="enter image description here"></p>
  
  <p>look the MARGIN of the pdf in the first and in the second one...</p>
  
  <p>there is a way to make EVERY  image like the 654, no matter the original size??</p>
  
  <p>thanks, aprreciate any idea, or i will have to open all the image in paint and edit it :(</p>