title: Saving com.itextpdf.text.Image as a image file
body: <p>Is there a way to save the com.itextpdf.text.Image file as a jpg file on the file system ?</p>
  
  <pre><code>Barcode39 code39 = new Barcode39();
  code39.setCode(barcode);
  code39.setStartStopText(false);
  image39 = code39.createImageWithBarcode(cb, null, null);
  image39.scaleAbsolute(width, height);
  image39.setAbsolutePosition(top, left);
  cb.addImage(image39);
  </code></pre>
  
  <p>I am creating a bar code image and adding it to a pdf. At the same time i want the image to be saved on the file system. Any help is appreciated.</p>
  
  <p>OR,</p>
  
  <p>Is it possible to  retrieve the barcode from the pdf( both the barcode as well as the numbers under it) as an image file and save it to the file system using itext ?</p>