Click or drag to resize
Pdf Library for .NET

PdfFormField Class

Base class for all AcroForm field wrappers.
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalPdfFormField
    More

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public class PdfFormField

The PdfFormField type exposes the following members.

Properties
 NameDescription
Public propertyDisplayPageGets the zero-based index of the page the field is on, or -1.
Public propertyDisplayRectangleGets the field rectangle on its page (in PDF points).
Public propertyFlattenGets or sets a value indicating whether this field is flattened on save.
Public propertyFullNameGets the fully-qualified field name.
Public propertyNameGets or sets the field name.
Public propertyReadOnlyGets or sets a value indicating whether the field is read-only.
Public propertyWidgetsGets the collection of widgets (visual placements) of this field.
Top
Example
PdfFormManager manager = new PdfFormManager();
manager.Load("form.pdf");
foreach (PdfFormField field in manager.Fields)
{
    System.Console.WriteLine(field.Name + " on page " + field.DisplayPage);
    field.ReadOnly = true;
}
manager.Save("locked.pdf");
See Also
Inheritance Hierarchy