Class PdfFormField

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

Base class of the interactive form fields created with the PdfPage.Add… methods. Every field gets real appearance streams, so it looks the same in every viewer, including ones that do not regenerate appearances.

public abstract class PdfFormField
Inheritance
PdfFormField
Derived
Inherited Members

Remarks

Field appearances use the standard 14 fonts, so field text is limited to WinAnsiEncoding (Latin) characters. Properties can be changed at any time before the document is saved.

Properties

BackgroundColor

Background colour; null for a transparent background. Defaults to white.

BorderColor

Border colour; null for no border. Defaults to black.

BorderWidth

Border width, in points. Defaults to 1.

Name

The field name, unique within the document. Used to find the field when filling the form.

ReadOnly

Whether the user is prevented from changing the value.

Required

Whether the field must have a value when the form is submitted.

Tooltip

Text shown by viewers when the pointer hovers over the field, and read by screen readers.