You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`toggleToOffButton`[_boolean_] - Allows a selected radio button to be toggled
135
+
off by clicking it again.
136
+
137
+
#### Checkbox Field Options
138
+
139
+
`formCheckbox` accepts the common annotation options.
140
+
141
+
### Form Field Options
142
+
143
+
`formField( name, options )` creates an invisible field node and accepts these
144
+
options:
145
+
146
+
-`parent`[_PDFReference_] - Parent field returned by `formField`.
147
+
-`required`[_boolean_] - The field must have a value by the time the form is submitted.
148
+
-`noExport`[_boolean_] - The field will not be exported if a form is submitted.
149
+
-`readOnly`[_boolean_] - The user may not change the value of the field.
150
+
-`value`[_number|string_] - The field's value.
151
+
-`defaultValue`[_number|string_] - The default value to which the field
152
+
reverts if a reset-form action is executed.
153
+
-`backgroundColor` - Field background color.
154
+
-`borderColor` - Field border color.
155
+
-`fontSize`[_number_] - Sets the font size used in the field appearance string.
156
+
109
157
### Text Field Formatting
110
158
111
159
When needing to format the text value of a Form Annotation, the following
@@ -254,11 +302,9 @@ The output of this example looks like this.
254
302
255
303
### Advanced Form Field Use
256
304
257
-
Forms can be quite complicated and your needs will likely grow to sometimes need
258
-
to directly specify the attributes that will go into the Form Annotation or
259
-
Field dictionaries. Consult the **PDF Reference** and set these attributes in
260
-
the `options` object. Any options that are not listed above will be added
261
-
directly to the corresponding PDF Object.
305
+
Older implementations used to pass all unknown options to the internal PDF object structure. A small set of direct PDF dictionary escape hatches is still recognized: `Ff`, `MK.CA`, and `AA` when a `format` option is used but its use is discouraged and likely will be removed in future versions.
306
+
307
+
If an option is not supported, open an issue on Github and it will be considered for addition to the API.
0 commit comments