/// <exception cref="System.IO.IOException"/> public virtual void CreatePdf(String dest) { PdfDocument pdf = new PdfDocument(new PdfWriter(dest)); pdf.SetDefaultPageSize(PageSize.A4); Document doc = new Document(pdf); Paragraph title = new Paragraph("Application for employment").SetTextAlignment(TextAlignment.CENTER).SetFontSize(16); doc.Add(title); PdfAcroForm form = PdfAcroForm.GetAcroForm(doc.GetPdfDocument(), true); PdfTextFormField nameField = PdfTextFormField.CreateText(doc.GetPdfDocument(), new Rectangle(99, 753, 425, 15), "name", ""); nameField.SetRequired(true); form.AddField(nameField); doc.Close(); }