4

I have created a PDF file using Acrobat Adobe 8 that contains fillable fields.

Can that be programmed with ITextSharp instead of Adobe?

Note: I am not referring to filling out the PDF with ITextSharp, instead I would like to create the fillable fields on the PDF file using ITextSharp.

Any code would be appreciated.

thank you for your time!

dirtyw0lf
  • 1,899
  • 5
  • 35
  • 63

1 Answers1

3

You can create PDFs that contain fillable fields with iText[Sharp], but they won't look as nice as Adobe Acrobat, which is a much better design tool.

By fillable fields, I'm guessing you mean a TextField. Here's a link with some simple example code from the book to get you started. Specifically, take a look at the CreatePdf() and CellLayout() methods, and the iText API if you need more information.

kuujinbo
  • 9,272
  • 3
  • 44
  • 57
  • After reading the API, PdfFormField.CreateTextField is what was required. – dirtyw0lf Feb 20 '12 at 16:21
  • 1
    Yes, that's a **different** way to create a text field. As stated, the example code referenced in the answer was written to **explicitly demonstrate** how to create PDF text fields with iText[Sharp] by the **creator** of iText. – kuujinbo Feb 21 '12 at 07:03