PdfFormWidget
OfficeIMO.Pdf
Simple AcroForm widget annotation geometry read from a PDF document.
Inheritance
- object
- PdfFormWidget
Remarks
Native page coordinates use default user-space units: one unit is /UserUnit physical points (1/72 inch each), defaulting to 1. Local text/font and matrix values retain their native coordinate spaces. Explicit visual projections use their documented coordinates.
Usage
Explore 9 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 9
- Method PdfDocumentInfo.GetFormWidgets
- Property PdfDocumentInfo.FormWidgets
- Property PdfDocumentInfo.FormWidgetsByFieldName
- Property PdfDocumentInfo.FormWidgetsByPageNumber
- Method PdfFormField.GetWidgets
- Property PdfFormField.Widgets
- Property PdfFormField.WidgetsByPageNumber
- Property PdfLogicalFormWidget.SourceWidget
- Property PdfPageInfo.FormWidgets
Methods
public bool HasNormalAppearanceState(string state) #Returns true when the widget exposes a matching normal appearance state name.
Parameters
- state string
Returns
boolInherited Methods
Properties
public int? ObjectNumber { get; } #Indirect object number for the widget annotation, when known.
public string? FieldName { get; } #Fully qualified form field name associated with the widget, when known.
public int? PageNumber { get; } #One-based page number containing the widget annotation, when known.
public double X1 { get; } #Left edge of the widget rectangle in page user-space units.
public double Y1 { get; } #Bottom edge of the widget rectangle in page user-space units.
public double X2 { get; } #Right edge of the widget rectangle in page user-space units.
public double Y2 { get; } #Top edge of the widget rectangle in page user-space units.
public string? AppearanceState { get; } #Current widget appearance state name from /AS, when present.
public bool IsInvisible { get; } #True when the widget has the PDF annotation Invisible flag.
public bool IsPrint { get; } #True when the widget has the PDF annotation Print flag.
public bool IsNoZoom { get; } #True when the widget has the PDF annotation NoZoom flag.
public bool IsNoRotate { get; } #True when the widget has the PDF annotation NoRotate flag.
public bool IsNoView { get; } #True when the widget has the PDF annotation NoView flag.
public bool IsReadOnly { get; } #True when the widget has the PDF annotation ReadOnly flag.
public bool IsLocked { get; } #True when the widget has the PDF annotation Locked flag.
public bool IsToggleNoView { get; } #True when the widget has the PDF annotation ToggleNoView flag.
public bool IsLockedContents { get; } #True when the widget has the PDF annotation LockedContents flag.
public IReadOnlyList<string> NormalAppearanceStates { get; } #Normal appearance state names from /AP /N, when the widget exposes named appearance streams.
public int NormalAppearanceStateCount { get; } #Number of readable normal appearance states.
public bool HasNormalAppearanceStates { get; } #True when at least one normal appearance state was readable.
public IReadOnlyList<PdfFormWidgetAction> Actions { get; } #Primary and additional actions attached to this widget.
public int ActionCount { get; } #Number of readable primary and additional widget actions.
public bool HasActions { get; } #True when at least one primary or additional action is attached to this widget.
public string? JavaScript { get; } #First readable JavaScript source attached to this widget, when present.
public bool HasJavaScript { get; } #True when the widget exposes a readable JavaScript action.