DynaPDF Manual - Page 69
Previous Page 68 Index Next Page 70
Interactive Forms
Page 69 of 860
Interactive Forms
DynaPDF supports a large set of functions to create and edit form fields incl. predefined actions
and JavaScript actions. This section describes how interactive forms can be created and how
certain features can be used.
Functions to create form fields
• CreateButton()
// Buttons
o AddButtonImage()
// Image buttons
o AddButtonImageEx() // Image buttons
o AddButtonImageEx2()// Image buttons
• CreateCheckBox()
// Check boxes
• CreateComboBox()
// Combo boxes
• CreateListBox()
// List boxes
• CreateRadioButton()
// Radio buttons
• CreateSigField()
// Signature fields
• CreateTextField()
// Text fields
Field Appearance
Interactive Form Fields support user defined background, text and border colors, as well as
different border styles. These properties can be set or changed with following functions:
Global properties for new created fields:
• Get/SetBorderStyle()
// Border style
• Get/SetFieldBackColor()
// Background color
• Get/SetFieldBorderColor()
// Border color
• Get/SetColorSpace()
// Color space
• Get/SetFieldTextColor()
// Text color
• Get/SetLineWidth()
// Line width of the border
Functions to change the appearance or format of a field:
• SetFieldBBox()
// Changes the field’s bounding box
• Get/SetFieldBorderStyle()
// Border style
• Get/SetFieldBorderWidth()
// Line width of the border
• Get/SetFieldColor()
// Background, border, or text color
• SetFieldFont()
// Set or change the field font
• SetFieldFontEx()
// Set or change the field font
• SetFieldFontSize()
// Changes the field’s font size
• Get/SetFieldHighlightMode() // Highlight mode
• SetDateTimeFormat()
// Set a date or time format
• SetNumberFormat()
// Set a number format
Global field appearance properties:
• Get/SetNeedAppearance()
// See below
Previous topic: JSON Parser
Next topic: Important field properties when creating new fields, Field Properties