PdfFormField
OfficeIMO.Pdf
Simple AcroForm field information read from a PDF document.
Inheritance
- object
- PdfFormField
Usage
Explore 17 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 14
- Property PdfAcroFormEditResult.Fields
- Property PdfDocument.FormFields
- Method PdfDocumentInfo.GetFormFields
- Property PdfDocumentInfo.FormFields
- Property PdfDocumentInfo.FormFieldsByKind
- Property PdfDocumentInfo.FormFieldsByName
- Property PdfDocumentInfo.FormFieldsByPageNumber
- Method PdfDocumentReadResult.GetFormFields
- Property PdfDocumentReadResult.FormFields
- Property PdfDocumentReadResult.FormFieldsByKind
- Property PdfDocumentReadResult.FormFieldsByName
- Property PdfDocumentReadResult.FormFieldsByPageNumber
- Property PdfFormInteractionInfo.Fields
- Property PdfLogicalFormWidget.Field
Accepted by parameters 3
Methods
public IReadOnlyList<PdfFormWidget> GetWidgets(int pageNumber) #Returns readable widget annotations for this field on a one-based page number.
Parameters
- pageNumber int
Returns
IReadOnlyList<PdfFormWidget>Inherited Methods
Properties
public IReadOnlyList<PdfFormWidgetAction> Actions { get; } #Actions attached to a separate field dictionary; merged widgets expose their actions on the widget.
public int? ObjectNumber { get; } #Indirect object number for the field dictionary, when known.
public string? Name { get; } #Fully qualified field name when a name can be read.
public string? PartialName { get; } #Partial field name from the field dictionary.
public string? FieldType { get; } #Field type name, for example Tx, Btn, Ch, or Sig, when present or inherited.
public PdfFormFieldKind Kind { get; } #Common field kind inferred from PdfFormField.FieldType.
public string? Value { get; } #Simple field value formatted for wrapper display, when present.
public IReadOnlyList<string> Values { get; } #Simple field values from /V, preserving array values for multi-select choice fields.
public bool HasValues { get; } #True when at least one simple field value was readable.
public string? DefaultValue { get; } #Simple default field value formatted for wrapper display, when present.
public IReadOnlyList<string> DefaultValues { get; } #Simple default field values from /DV, preserving array values for multi-select choice fields.
public bool HasDefaultValues { get; } #True when at least one simple default field value was readable.
public string? RichValuePlainText { get; } #Plain-text projection of PdfFormField.RichValue, when readable.
public bool HasRichValue { get; } #True when a rich-text field value was readable.
public string? AlternateName { get; } #Alternate field name used as a user-facing label, when present.
public string? MappingName { get; } #Mapping name used for export workflows, when present.
public int? MaxLength { get; } #Maximum text length from /MaxLen, when present on a simple field.
public string? DefaultAppearance { get; } #Default appearance string from /DA, when present or inherited.
public bool HasDefaultAppearance { get; } #True when a default appearance string was readable.
public int? Quadding { get; } #Raw AcroForm /Q quadding value, when present or inherited.
public PdfFormFieldTextAlignment TextAlignment { get; } #Common text alignment inferred from /Q quadding.
public IReadOnlyList<PdfFormFieldOption> Options { get; } #Choice field options from /Opt, when readable.
public bool HasOptions { get; } #True when at least one choice option was readable.
public IReadOnlyList<int> SelectedIndices { get; } #Zero-based selected choice-option indices from /I, when readable.
public IReadOnlyList<PdfFormFieldOption> SelectedOptions { get; } #Readable choice options identified by /I or, when absent, whose export value matches the field value list.
public int SelectedOptionCount { get; } #Number of readable choice options whose export value matches the field value list.
public bool HasSelectedOptions { get; } #True when at least one readable choice option matches the field value list.
public IReadOnlyList<PdfFormFieldOption> DefaultSelectedOptions { get; } #Readable choice options whose export value matches the default field value list.
public int DefaultSelectedOptionCount { get; } #Number of readable choice options whose export value matches the default field value list.
public bool HasDefaultSelectedOptions { get; } #True when at least one readable choice option matches the default field value list.
public bool IsReadOnly { get; } #True when the common read-only field flag is set.
public bool IsRequired { get; } #True when the common required field flag is set.
public bool IsNoExport { get; } #True when the common no-export field flag is set.
public bool IsMultiline { get; } #True when a text field has the multiline flag set.
public bool IsPassword { get; } #True when a text field has the password flag set.
public bool IsFileSelect { get; } #True when a text field has the file-select flag set.
public bool DoesNotSpellCheck { get; } #True when a text or choice field disables spell checking.
public bool IsRichText { get; } #True when a text field has the rich-text flag set.
public bool IsNoToggleToOff { get; } #True when a button field has the no-toggle-to-off flag set.
public bool IsCheckBox { get; } #True when a button field is a check box rather than a push button or radio button.
public bool IsEditableChoice { get; } #True when a choice combo box allows direct text editing.
public bool IsSortedChoice { get; } #True when a choice field asks viewers to sort options.
public bool AllowsMultipleSelection { get; } #True when a choice field allows multiple selections.
public bool CommitsOnSelectionChange { get; } #True when a choice field commits values immediately when the selected item changes.
public IReadOnlyList<PdfFormWidget> Widgets { get; } #Simple widget annotations that visually represent this field, when readable.
public bool HasUnplacedContent { get; } #Whether this field has no widgets or has a widget not attached to a readable page.
public int WidgetCount { get; } #Number of readable widget annotations associated with this field.
public bool HasWidgets { get; } #True when at least one widget annotation was associated with this field.
public string? JavaScript { get; } #First readable JavaScript source attached to this field or one of its widgets, when present.
public bool HasJavaScript { get; } #True when the field or at least one widget exposes a readable JavaScript action.
public IReadOnlyList<int> PageNumbers { get; } #Distinct one-based page numbers where this field has readable widget annotations.
public int PageNumberCount { get; } #Number of distinct readable page numbers where this field has widgets.
public bool HasPageNumbers { get; } #True when at least one widget for this field has a readable page number.
public IReadOnlyDictionary<int, IReadOnlyList<PdfFormWidget>> WidgetsByPageNumber { get; } #Readable widget annotations for this field grouped by one-based page number.