My output
https://ibb.co/b5VbOv

Required Output
https://ibb.co/kWK9bF

I want the image in the left side corner....
This is My coding
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using iTextSharp.text;
using iTextSharp.text.pdf;
using System.IO;
using System.Data;
public partial class EnterDetails : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnview_Click(object sender, EventArgs e)
{
Document ds = new Document(PageSize.A4, 88f, 88f, 10f, 10f);
System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();
PdfWriter writer = PdfWriter.GetInstance(ds, memoryStream);
Phrase phrase = null;
PdfPCell cell = null;
PdfPTable table = null;
if (fuImg.HasFile)
{
fuImg.SaveAs(Server.MapPath("Images//" + fuImg.FileName));
}
ds.Open();
table = new PdfPTable(2);
table.HorizontalAlignment = Element.ALIGN_LEFT;
// table.SetWidths(new float[] { 0.3f, 1f });
table.LockedWidth = false;
table.SpacingBefore = 20f;
cell = image("~/Images/" + fuImg.FileName + "", 50f, PdfPCell.ALIGN_LEFT);
table.AddCell(cell);
phrase = new Phrase();
phrase.Add(new Chunk(txtName.Text.ToString() + "\n\n",FontFactory.GetFont("Arial",19, Font.BOLD)));
phrase.Add(new Chunk( txtDesc.Text.ToString(), FontFactory.GetFont("Arial", 11, Font.BOLD)));
cell = PhraseCell(phrase, PdfPCell.LEFT_BORDER);
cell.VerticalAlignment = PdfPCell.ALIGN_MIDDLE;
table.AddCell(cell);
ds.Add(table);
ds.Close();
byte[] bytes = memoryStream.ToArray();
memoryStream.Close();
Response.Clear();
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", "attachment; filename=Employee.pdf");
Response.ContentType = "application/pdf";
Response.Buffer = true;
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.BinaryWrite(bytes);
Response.End();
Response.Close();
}
private static PdfPCell PhraseCell(Phrase phrase, int align)
{
PdfPCell cell = new PdfPCell(phrase);
//cell.BorderColor = Color.WHITE;
cell.VerticalAlignment = PdfPCell.ALIGN_TOP;
cell.HorizontalAlignment = align;
cell.Left = 2f;
cell.BorderWidth = 0;
cell.BorderWidthTop = 0;
cell.BorderWidthBottom = 0;
cell.BorderWidthLeft = 0;
cell.BorderWidthRight = 0;
cell.PaddingBottom = 2f;
cell.PaddingTop = 2f;
return cell;
}
//private static void DrawLine(PdfWriter writer, float x1, float y1, float x2, float y2)
//{
// PdfContentByte contentByte = writer.DirectContent;
// // contentByte.SetColorStroke(color);
// contentByte.MoveTo(x1, y1);
// contentByte.LineTo(x2, y2);
// contentByte.Stroke();
//}
private static PdfPCell image(string path, float scale, int align)
{
iTextSharp.text.Image img = iTextSharp.text.Image.GetInstance(HttpContext.Current.Server.MapPath(path));
img.ScalePercent(scale);
PdfPCell cell = new PdfPCell(img);
//img.SetAbsolutePosition(10,15);
//cell.BorderColor = Color.WHITE;
cell.VerticalAlignment = PdfPCell.ALIGN_TOP;
cell.HorizontalAlignment =align;
cell.PaddingBottom = 0f;
cell.BorderWidth = 0;
cell.BorderWidthTop = 0;
cell.BorderWidthBottom = 0;
cell.BorderWidthLeft = 0;
cell.BorderWidthRight = 0;
cell.PaddingTop = 0f;
cell.PaddingLeft = 0f;
return cell;
}
}