PdfWidgetAnnotation
Represents a widget annotation (form field).
from nutrient import PdfWidgetAnnotationMethods
set_border_style
def set_border_style(self, value: PdfBorderStyle) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | PdfBorderStyle |
set_border_width
def set_border_width(self, value: float) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | float |
set_color
def set_color(self, value: Color) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | Color |
set_contents
def set_contents(self, value: str) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | str |
set_is_hidden
def set_is_hidden(self, value: bool) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | bool |
set_is_printable
def set_is_printable(self, value: bool) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | bool |
set_rect
def set_rect(self, value: Any) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | Any |
set_title
def set_title(self, value: str) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | str |
Properties
alternate_field_name
@propertydef alternate_field_name(self) -> strGets the alternate field name for display.
Type: str
Read-only property.
border_style
@propertydef border_style(self) -> PdfBorderStyleType: PdfBorderStyle
Read-only property.
border_width
@propertydef border_width(self) -> floatType: float
Read-only property.
color
@propertydef color(self) -> ColorType: Color
Read-only property.
contents
@propertydef contents(self) -> strType: str
Read-only property.
field_name
@propertydef field_name(self) -> strGets the field name (partial name).
Type: str
Read-only property.
field_type
@propertydef field_type(self) -> strGets the field type (Tx, Btn, Ch, Sig).
Type: str
Read-only property.
index
@propertydef index(self) -> intType: int
Read-only property.
is_button
@propertydef is_button(self) -> boolGets whether this is a button (checkbox, radio button, or push button).
Type: bool
Read-only property.
is_choice_field
@propertydef is_choice_field(self) -> boolGets whether this is a choice field (combo box or list box).
Type: bool
Read-only property.
is_hidden
@propertydef is_hidden(self) -> boolType: bool
Read-only property.
is_printable
@propertydef is_printable(self) -> boolType: bool
Read-only property.
is_signature_field
@propertydef is_signature_field(self) -> boolGets whether this is a signature field.
Type: bool
Read-only property.
is_text_field
@propertydef is_text_field(self) -> boolGets whether this is a text field.
Type: bool
Read-only property.
modification_date
@propertydef modification_date(self) -> strType: str
Read-only property.
name
@propertydef name(self) -> strType: str
Read-only property.
rect
@propertydef rect(self) -> AnyType: Any
Read-only property.
sub_type
@propertydef sub_type(self) -> strType: str
Read-only property.
title
@propertydef title(self) -> strType: str
Read-only property.