Represents a text form field in a PDF document. Text fields allow users to enter text from the keyboard.
from nutrient_sdk import PdfTextFieldInherits from: PdfFormField
Construction
PdfTextField cannot be instantiated directly. Obtain instances through static factory methods or via other SDK classes.
Properties
background_color
@propertydef background_color(self) -> Color
@background_color.setterdef background_color(self, value: Color) -> NoneThe background color of the text field.
Type: Color
border_color
@propertydef border_color(self) -> Color
@border_color.setterdef border_color(self, value: Color) -> NoneThe border color of the text field.
Type: Color
font_color
@propertydef font_color(self) -> Color
@font_color.setterdef font_color(self, value: Color) -> NoneThe font color for the text field content.
Type: Color
font_name
@propertydef font_name(self) -> str
@font_name.setterdef font_name(self, value: str) -> NoneThe font name for the text field content.
Type: str
font_size
@propertydef font_size(self) -> float
@font_size.setterdef font_size(self, value: float) -> NoneThe font size for the text field content.
Type: float
text
@propertydef text(self) -> str
@text.setterdef text(self, value: str) -> NoneThe text content of the field. This is an alias for the property.
Type: str
Inherited members
From PdfFormField: child, child_count, default_value, field_type, full_name, is_read_only, is_required, is_terminal, name, parent, value, widget, widget_count, remove_child_at