Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfFormFieldCreateOptions

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
551365f138da with working tree changes
Modifiers
sealed

Creates an AcroForm field and its widget or widgets on an existing page.

Inheritance

  • object
  • PdfFormFieldCreateOptions

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 2 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 1

Accepted by parameters 1

Constructors

public PdfFormFieldCreateOptions() #

Properties

public string Name { get; set; } #

Unique fully qualified field name.

public PdfFormFieldCreationKind Kind { get; set; } #

Field kind.

public int PageNumber { get; set; } #

One-based page number.

public double X { get; set; } #

Widget left coordinate.

public double Y { get; set; } #

Widget bottom coordinate.

public double Width { get; set; } #

Widget width.

public double Height { get; set; } #

Widget height.

public string Value { get; set; } #

Initial scalar value.

public string? DefaultValue { get; set; } #

Optional default value.

public int FieldFlags { get; set; } #

Raw field /Ff flags.

public int WidgetFlags { get; set; } #

Raw widget annotation /F flags. Default enables printing.

public IReadOnlyList<string> ChoiceOptions { get; set; } #

Choice options for choice fields.

public string CheckedValueName { get; set; } #

Export name used for a checked checkbox.

public bool IsComboBox { get; set; } #

True to create a combo box; false creates a list box. Applies only to choice fields and defaults to false for compatibility.

public string Caption { get; set; } #

Visible push-button caption. Defaults to Button.

public string? JavaScript { get; set; } #

Optional JavaScript source attached to widget activation. Push buttons use /A; other fields use /AA /U.

public double FontSize { get; set; } #

Font size used for generated text, choice, and push-button appearances.

public double RadioButtonSize { get; set; } #

Radio widget size in page user-space units. Applies only to radio-button groups.

public double RadioButtonGap { get; set; } #

Vertical gap between radio widgets in page user-space units.

public PdfFormFieldStyle? Style { get; set; } #

Visual and semantic field style used by generated widget appearances.