using iTextSharp;
using iTextSharp.text;
using iTextSharp.text.pdf;
using System.IO;
SaveFileDialog dlg = new SaveFileDialog();
dlg.Filter = "PDF Files|*.pdf";
dlg.FilterIndex = 0;
string fileName = string.Empty;
if (dlg.ShowDialog() == DialogResult.OK)
{
fileName = dlg.FileName;
Document myDocument = new Document(iTextSharp.text.PageSize.A4, 10, 10, 42, 35);
PdfWriter.GetInstance(myDocument, new FileStream(fileName, FileMode.Create));
myDocument.Open();
myDocument.Add(new Paragraph("ID:" + TextBox1.Text));pre>
myDocument.Close();
}