TCPDF::CheckBox( $name, $w, $checked = false, $prop = array(), $opt = array(), $onvalue = 'Yes', $x = '', $y = '', $js = false )
Creates a CheckBox field
Description Description
Parameters Parameters
- $name
-
(Required) (string) field name
- $w
-
(Required) (int) width
- $checked
-
(Optional) (boolean) define the initial state.
Default value: false
- $prop
-
(Optional) (array) javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
Default value: array()
- $opt
-
(Optional) (array) annotation parameters. Possible values are described on official PDF32000_2008 reference.
Default value: array()
- $onvalue
-
(Optional) (string) value to be returned if selected.
Default value: 'Yes'
- $x
-
(Optional) (float) Abscissa of the upper-left corner of the rectangle
Default value: ''
- $y
-
(Optional) (float) Ordinate of the upper-left corner of the rectangle
Default value: ''
- $js
-
(Optional) (boolean) if true put the field using JavaScript (requires Acrobat Writer to be rendered).
Default value: false
Source Source
File: includes/lib/tcpdf/tcpdf.php
Changelog Changelog
Version | Description |
---|---|
4.8.000 | Introduced. |