Method AddTextField
AddTextField(string, PdfPage, XRect, PdfFormFieldStyle?)
Adds a text field. The rectangle is in points from the top left corner of the visible page (its crop box, or its media box if it has none), with y growing downwards as for XGraphics. Set flags such as Multiline or Password on the returned field, and its text with Text.
public PdfFormTextField AddTextField(string name, PdfPage page, XRect rectangle, PdfFormFieldStyle? style = null)
Parameters
namestringpagePdfPagerectangleXRectstylePdfFormFieldStyle
Returns
Exceptions
- InvalidOperationException
The document is PDF/A (the field's Helvetica is not embedded) or PDF/UA (fields are not tagged yet).