PDFlib Cookbook

cookbook

Form Fields

form_and_layers Define two layers for English or German contents and hide or show them via form field buttons.
form_checkbox Create form fields of type "checkbox".
form_combobox Create a form field of type "combobox" for choosing an item from a list or changing an existing item.
form_listbox Create a form field of type "listbox" for choosing an item from a list.
form_multiline_textfield Create a form field of type "textfield" for entering multiline text.
form_pushbutton Create form fields of type "pushbutton" for executing the "Print" and "Save As" commands."
form_radiobutton Create a field group with three form fields of type "radiobutton".
form_synchronized_fields Create multiple form fields of type 'textfield' with synchronized values
form_tab_order Define the position of each form field in the tab order, i.e. when the user presses the "Tab" key.
form_textfield_fill_with_js Fill a form text field with a value using JavaScript.
form_textfield_height Determine the height of a form field of type "textfield" with respect to the font size and vice versa.
form_textfield_input_check Check whether the date entered in a form field of type "textfield" has been formatted correctly.
form_textfield_input_format Format the data entered in a form field of type "textfield" according to the specified rules
form_triggers_js_actions Demonstrate all possibilities to trigger a JavaScript action from a form field.
starter_formfields Create linearized PDF which is encrypted and contains some form fields.