Represents a radio button form field in a PDF document. Radio buttons are part of a mutually exclusive group where only one option can be selected.

from nutrient import PdfRadioButtonField

Methods

get_child

def get_child(self, index: int) -> PdfFormField

Parameters:

NameTypeDescription
indexint

Returns: PdfFormField


get_widget

def get_widget(self, index: int) -> PdfWidgetAnnotation

Parameters:

NameTypeDescription
indexint

Returns: PdfWidgetAnnotation


remove_child_at

def remove_child_at(self, index: int) -> None

Parameters:

NameTypeDescription
indexint

set_is_read_only

def set_is_read_only(self, value: bool) -> None

Parameters:

NameTypeDescription
valuebool

set_is_required

def set_is_required(self, value: bool) -> None

Parameters:

NameTypeDescription
valuebool

set_selected_option

def set_selected_option(self, value: str) -> None

Sets the currently selected option value. Set to “Off” to deselect all options.

Parameters:

NameTypeDescription
valuestrThe value to set for the SelectedOption property.

set_value

def set_value(self, value: str) -> None

Parameters:

NameTypeDescription
valuestr

Properties

child_count

@property
def child_count(self) -> int

Type: int

Read-only property.


default_value

@property
def default_value(self) -> str

Type: str

Read-only property.


field_type

@property
def field_type(self) -> PdfFormFieldType

Type: PdfFormFieldType

Read-only property.


full_name

@property
def full_name(self) -> str

Type: str

Read-only property.


has_selection

@property
def has_selection(self) -> bool

Gets whether any option is currently selected.

Type: bool

Read-only property.


is_read_only

@property
def is_read_only(self) -> bool

Type: bool

Read-only property.


is_required

@property
def is_required(self) -> bool

Type: bool

Read-only property.


is_terminal

@property
def is_terminal(self) -> bool

Type: bool

Read-only property.


name

@property
def name(self) -> str

Type: str

Read-only property.


option_count

@property
def option_count(self) -> int

Gets the number of options (radio buttons) in this group.

Type: int

Read-only property.


parent

@property
def parent(self) -> PdfFormField

Type: PdfFormField

Read-only property.


selected_option

@property
def selected_option(self) -> str

Gets the currently selected option value. Set to “Off” to deselect all options.

Type: str

Read-only property.


value

@property
def value(self) -> str

Type: str

Read-only property.


widget_count

@property
def widget_count(self) -> int

Type: int

Read-only property.