iTextSharp is allowed to you to use images in PDF document and it’ll support many image formats like .jpg, .jpeg, .png, .bmp, .tif and .wmf.
- iTextSharp.text.Image gif = iTextSharp.text.Image.GetInstance(imagepath +"/image.jpg");
It also provides way for align images in PDF document. There are some properties used to do that. - gif.ScaleToFit(250f, 250f);
- gif.Alignment = iTextSharp.text.Image.TEXTWRAP | iTextSharp.text.Image.ALIGN_RIGHT;
- gif.IndentationLeft = 9f;
- gif.SpacingAfter = 9f;
- gif.BorderWidthTop = 36f;