@@ -118,7 +118,10 @@ Its keys have to be `string` and need to match the annotated names of elements.
118
118
Its values currently support the following:
119
119
1) A ` string ` , which will be printed on the corresponding ` text ` element.
120
120
2) A ` boolean ` , which will check the corresponding ` checkbox ` element.
121
- 3) A valid image ` bytes ` stream, which will be drawn on the corresponding ` image ` element.
121
+ 3) An ` integer ` , which will select the corresponding option of a group of radio buttons with the same name.
122
+ NOTE: Only groups of radio buttons with the same name are supported. If there is only one
123
+ radio button with a name, please consider using ` checkbox ` instead.
124
+ 4) A valid image ` bytes ` stream, which will be drawn on the corresponding ` image ` element.
122
125
123
126
* ** editable** - only available if ` simple_mode ` is ` True ` , enabling this will allow the filled PDF to be still
124
127
editable. NOTE: ` image ` elements that are filled via the ` fill ` method will NOT be editable even if this is ` True ` .
@@ -159,13 +162,14 @@ such as font size and text wrap length.
159
162
* ** element_name** - a string which represents the annotated name of the element.
160
163
161
164
* ** element_type** - an enum which represents the type of the element, currently supporting
162
- ` text ` , ` checkbox ` and ` image ` .
165
+ ` text ` , ` checkbox ` , ` radio ` and ` image ` .
163
166
164
167
* ** element_value** - this is the value that's used to fill this element.
165
168
It currently supports the following based on the type of the element:
166
169
1 ) A ` string ` , if the element is a ` text ` .
167
170
2 ) A ` boolean ` , if the element is a ` checkbox ` .
168
- 3 ) A valid image ` bytes ` stream, if the element is an ` image ` .
171
+ 3 ) An ` integer ` , if the element is a ` radio ` .
172
+ 4 ) A valid image ` bytes ` stream, if the element is an ` image ` .
169
173
170
174
### ** name**
171
175
@@ -174,7 +178,7 @@ A string which represents the annotated name of the element. Readonly.
174
178
### ** type**
175
179
176
180
An enum value which represents the type of the element, currently supporting
177
- ` text ` , ` checkbox ` and ` image ` . Readonly.
181
+ ` text ` , ` checkbox ` , ` radio ` and ` image ` . Readonly.
178
182
179
183
### ** value**
180
184
@@ -183,7 +187,8 @@ It currently supports the following based on the type of the element:
183
187
184
188
1 ) A ` string ` , if the element is a ` text ` .
185
189
2 ) A ` boolean ` , if the element is a ` checkbox ` .
186
- 3 ) A valid image ` bytes ` stream, if the element is an ` image ` .
190
+ 3 ) An ` integer ` , if the element is a ` radio ` .
191
+ 4 ) A valid image ` bytes ` stream, if the element is an ` image ` .
187
192
188
193
### ** font** = * None*
189
194
0 commit comments