DynaPDF Manual - Page 54
Previous Page 53 Index Next Page 55

Interactive Forms
Page 54 of 821
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.
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
Calc order:
• Get/SetFieldCalcOrder()
// Get or change the calc order
Other:
• DeleteAcroForm()
// Delete the entire AcroForm
• DeleteXFAForm()
// Delete the XFA form of a hybrid form
• DeleteJavaScripts() // Delete global Javascripts and JS Actions
• LoadFDFData()
// Load form data from a FDF file
Previous topic: Font embedding, Complex text layout and form fields
Next topic: Important field properties when creating new fields, Field Properties