title: Creating PDF from TIFF image using iText
body: <p>I'm currently generating PDF files from TIFF images using iText.</p>
  
  <p>Basically the procedure is as follows:
  1. Read the TIFF file.
  2. For each "page" of the TIFF, instantiate an <strong><em>Image</em></strong> object and write that to a <strong><em>Document</em></strong> instance, which is the PDF file.</p>
  
  <p>I'm having a hard time understanding how to add those images to the PDF keeping the original resolution.</p>
  
  <p>I've tried to scale the <strong><em>Image</em></strong> to the dimensions in pixels of the original image of the TIFF, for instance:</p>
  
  <pre><code>// Pixel Dimensions 1728 × 2156 pixels
  // Resolution 204 × 196 ppi
  RandomAccessFileOrArray tiff = new RandomAccessFileOrArray("/path/to/tiff/file");
  Document pdf = new Document(PageSize.LETTER);
  Image temp = TiffImage.getTiffImage(tiff, page);
  temp.scaleAbsolute(1728f, 2156f);
  pdf.add(temp);
  </code></pre>
  
  <p>I would really appreciate if someone can shed some light on this. Perhaps I'm missing the functionality of the <strong><em>Image</em></strong> class methods...</p>
  
  <p>Thanks in advance!</p>