# PdfFormWidget

Simple AcroForm widget annotation geometry read from a PDF document.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfFormField.cs:631](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L631)

**Modifiers**

sealed

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](/api/pdf/officeimo-pdf-pdfdocumentinfo/#method-getformwidgets-string)
- Property [PdfDocumentInfo.FormWidgets](/api/pdf/officeimo-pdf-pdfdocumentinfo/#property-formwidgets)
- Property [PdfDocumentInfo.FormWidgetsByFieldName](/api/pdf/officeimo-pdf-pdfdocumentinfo/#property-formwidgetsbyfieldname)
- Property [PdfDocumentInfo.FormWidgetsByPageNumber](/api/pdf/officeimo-pdf-pdfdocumentinfo/#property-formwidgetsbypagenumber)
- Method [PdfFormField.GetWidgets](/api/pdf/officeimo-pdf-pdfformfield/#method-getwidgets-int32)
- Property [PdfFormField.Widgets](/api/pdf/officeimo-pdf-pdfformfield/#property-widgets)
- Property [PdfFormField.WidgetsByPageNumber](/api/pdf/officeimo-pdf-pdfformfield/#property-widgetsbypagenumber)
- Property [PdfLogicalFormWidget.SourceWidget](/api/pdf/officeimo-pdf-pdflogicalformwidget/#property-sourcewidget)
- Property [PdfPageInfo.FormWidgets](/api/pdf/officeimo-pdf-pdfpageinfo/#property-formwidgets)

Filter members 

Show inherited

## Methods

`public bool HasNormalAppearanceState(string state)` [#](#method-hasnormalappearancestate-string)

[PdfFormField.cs:631](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L631)

Returns true when the widget exposes a matching normal appearance state name.

Parameters

**state string required**

Returns

`bool`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int? ObjectNumber { get; }` [#](#property-objectnumber)

[PdfFormField.cs:533](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L533)

Indirect object number for the widget annotation, when known.

`public string? FieldName { get; }` [#](#property-fieldname)

[PdfFormField.cs:536](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L536)

Fully qualified form field name associated with the widget, when known.

`public int? PageNumber { get; }` [#](#property-pagenumber)

[PdfFormField.cs:539](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L539)

One-based page number containing the widget annotation, when known.

`public double X1 { get; }` [#](#property-x1)

[PdfFormField.cs:542](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L542)

Left edge of the widget rectangle in page user-space units.

`public double Y1 { get; }` [#](#property-y1)

[PdfFormField.cs:545](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L545)

Bottom edge of the widget rectangle in page user-space units.

`public double X2 { get; }` [#](#property-x2)

[PdfFormField.cs:548](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L548)

Right edge of the widget rectangle in page user-space units.

`public double Y2 { get; }` [#](#property-y2)

[PdfFormField.cs:551](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L551)

Top edge of the widget rectangle in page user-space units.

`public double Width { get; }` [#](#property-width)

[PdfFormField.cs:554](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L554)

Rectangle width in page user-space units.

`public double Height { get; }` [#](#property-height)

[PdfFormField.cs:557](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L557)

Rectangle height in page user-space units.

`public string? AppearanceState { get; }` [#](#property-appearancestate)

[PdfFormField.cs:560](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L560)

Current widget appearance state name from /AS, when present.

`public int? Flags { get; }` [#](#property-flags)

[PdfFormField.cs:563](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L563)

Raw widget annotation flags from /F, when present.

`public bool IsInvisible { get; }` [#](#property-isinvisible)

[PdfFormField.cs:566](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L566)

True when the widget has the PDF annotation Invisible flag.

`public bool IsHidden { get; }` [#](#property-ishidden)

[PdfFormField.cs:569](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L569)

True when the widget has the PDF annotation Hidden flag.

`public bool IsPrint { get; }` [#](#property-isprint)

[PdfFormField.cs:572](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L572)

True when the widget has the PDF annotation Print flag.

`public bool IsNoZoom { get; }` [#](#property-isnozoom)

[PdfFormField.cs:575](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L575)

True when the widget has the PDF annotation NoZoom flag.

`public bool IsNoRotate { get; }` [#](#property-isnorotate)

[PdfFormField.cs:578](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L578)

True when the widget has the PDF annotation NoRotate flag.

`public bool IsNoView { get; }` [#](#property-isnoview)

[PdfFormField.cs:581](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L581)

True when the widget has the PDF annotation NoView flag.

`public bool IsReadOnly { get; }` [#](#property-isreadonly)

[PdfFormField.cs:584](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L584)

True when the widget has the PDF annotation ReadOnly flag.

`public bool IsLocked { get; }` [#](#property-islocked)

[PdfFormField.cs:587](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L587)

True when the widget has the PDF annotation Locked flag.

`public bool IsToggleNoView { get; }` [#](#property-istogglenoview)

[PdfFormField.cs:590](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L590)

True when the widget has the PDF annotation ToggleNoView flag.

`public bool IsLockedContents { get; }` [#](#property-islockedcontents)

[PdfFormField.cs:593](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L593)

True when the widget has the PDF annotation LockedContents flag.

`public IReadOnlyList<string> NormalAppearanceStates { get; }` [#](#property-normalappearancestates)

[PdfFormField.cs:596](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L596)

Normal appearance state names from /AP /N, when the widget exposes named appearance streams.

`public int NormalAppearanceStateCount { get; }` [#](#property-normalappearancestatecount)

[PdfFormField.cs:599](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L599)

Number of readable normal appearance states.

`public bool HasNormalAppearanceStates { get; }` [#](#property-hasnormalappearancestates)

[PdfFormField.cs:602](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L602)

True when at least one normal appearance state was readable.

`public IReadOnlyList<PdfFormWidgetAction> Actions { get; }` [#](#property-actions)

[PdfFormField.cs:605](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L605)

Primary and additional actions attached to this widget.

`public int ActionCount { get; }` [#](#property-actioncount)

[PdfFormField.cs:608](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L608)

Number of readable primary and additional widget actions.

`public bool HasActions { get; }` [#](#property-hasactions)

[PdfFormField.cs:611](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L611)

True when at least one primary or additional action is attached to this widget.

`public string? JavaScript { get; }` [#](#property-javascript)

[PdfFormField.cs:616](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L616)

First readable JavaScript source attached to this widget, when present.

`public bool HasJavaScript { get; }` [#](#property-hasjavascript)

[PdfFormField.cs:627](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfFormField.cs#L627)

True when the widget exposes a readable JavaScript action.

<!-- PowerForge markdown artifact sha256:5327314F9F87E78DBB27C519F780FD2C27CB2F5F6CDB60E72A4BCC7C032E793B -->
