This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/csharp/editors/pdf/formfields/pdf-push-button-field.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. PdfPushButtonField

Represents a push button form field in a PDF document. Push buttons respond immediately to user input without retaining a permanent value. They are typically used to trigger actions like submit, reset, or JavaScript execution.

using Nutrient;

Inherits from: PdfFormField

The SDK creates this class through factory methods or other SDK objects.

Properties

BackgroundColor

public Color? BackgroundColor { get; set; }

The background color of the button.

Type: Color?

BorderColor

public Color? BorderColor { get; set; }

The border color of the button.

Type: Color?

Caption

public string Caption { get; set; }

The caption text displayed on the button.

Type: string

FontColor

public Color? FontColor { get; set; }

The font color for the button caption text.

Type: Color?

FontName

public string FontName { get; set; }

The font name for the button caption text.

Type: string

FontSize

public float FontSize { get; set; }

The font size for the button caption text.

Type: float

Resource management

public void Dispose()

PdfPushButtonField implements IDisposable. Call Dispose() or use a C# using declaration to release its native handle right away. If you don’t, the handle is released when the object is garbage collected.