TCPDF::Button( $name,  $w,  $h,  $caption,  $action,  $prop = array(),  $opt = array(),  $x = '',  $y = '',  $js = false )

Creates a button field


Description Description


Parameters Parameters

$name

(Required) (string) field name

$w

(Required) (int) width

$h

(Required) (int) height

$caption

(Required) (string) caption.

$action

(Required) (mixed) action triggered by pressing the button. Use a string to specify a javascript action. Use an array to specify a form action options as on section 12.7.5 of PDF32000_2008.

$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()

$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


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.8.000 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.