Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 48

Previous Page 47   Index   Next Page 49

Interactive Forms
Page 48 of 750
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 an Interactive Form 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 of an existing 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
Global field appearance properties:
Get/SetNeedAppearance()
// See below
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
all field types with exception of barcode fields. However, in certain cases it can be useful to let
 

Previous topic: Compiling DynaPDF on Mac OS X

Next topic: Field Properties