DynaPDF Manual - Page 56
Previous Page 55 Index Next Page 57
Interactive Forms
Page 56 of 839
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
The global NeedAppearance flag of an Interactive Form defines whether the viewer should
create the field appearances on demand when opening the file or whether the existing
definitions should be taken from the PDF file. DynaPDF creates always appearance streams for
Previous topic: JSON Parser
Next topic: Important field properties when creating new fields, Field Properties