title: Save download file dialog
body: <p>I have created a PDF using iText and storing it in a particular location (specified in the code). I would like to prompt a save dialog box for the user to choose location on his computer to save the pdf. I checked iText tutorial but it didn't help me. </p>
  
  <p>Here is the code for generating the PDF file:</p>
  
  <pre><code>Document objDoc = new Document();
  PdfWriter.GetInstance(objDoc, new FileStream("C:\\HelloWorld.pdf", FileMode.Create));
  objDoc.Open();
  objDoc.Add(new Paragraph("welcome iText Pdf"));
  objDoc.Close();
  </code></pre>
  
  <p>I tried like this for saving:</p>
  
  <pre><code>string FileName ="HelloWorld.pdf";
  String FilePath = @"C:\";
  HttpResponse response = HttpContext.Current.Response;
  response.ClearContent();
  response.Clear();
  response.ContentType = "application/pdf";
  response.AddHeader("Content-Disposition", "attachment; filename=" + FileName + ";");
  response.TransmitFile(FilePath + FileName);
  response.Flush();
  response.End();
  </code></pre>