Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfFormWidget

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
67621aa8a46e with working tree changes
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.

Methods

public bool HasNormalAppearanceState(string state) #

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

Parameters

state string required

Returns

bool

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 double Width { get; } #

Rectangle width in page user-space units.

public double Height { get; } #

Rectangle height in page user-space units.

public string? AppearanceState { get; } #

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

public int? Flags { get; } #

Raw widget annotation flags from /F, when present.

public bool IsInvisible { get; } #

True when the widget has the PDF annotation Invisible flag.

public bool IsHidden { get; } #

True when the widget has the PDF annotation Hidden 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.