title: Cut jpg iTextSharp.text.Image From top
body: <p>I need to cut a .jpg image from top of 20 pixels.</p>
  
  <p>I have this code to associate the image to the object:</p>
  
  <pre><code>iTextSharp.text.Rectangle rect = pdf.AcroFields.GetFieldPositions("BarCode")[0].position;
  iTextSharp.text.Image img = iTextSharp.text.Image.GetInstance(Application.StartupPath + segnacollo.BarCode);
  img.ScaleAbsoluteHeight(rect.Height);
  img.ScaleAbsoluteWidth(rect.Width);
  img.SetAbsolutePosition(rect.Left, rect.Bottom);
  pdf.GetOverContent(1).AddImage(img);
  </code></pre>
  
  <p>Thanks</p>