PDFForm
_invoke()
Manipulates existing forms created in Adobe Acrobat and Adobe LiveCycle Designer.
This component is only available to Boxlang+/++ subscribers only but can be installed in conjunction with the bx-plus Module with a limited trial.
Component Signature
<bx:PDFForm action=[string]
source=[any]
destination=[string]
overwrite=[boolean]
overwriteData=[boolean]
XMLdata=[string]
fdf=[boolean]
fdfdata=[string]
result=[string] />Attributes
action
string
true
String - The action to perform on the PDF form. Valid values: "populate", "read" Required.
source
any
true
Any - The source PDF document to operate on. Can be a file path, byte array, or PDF document variable. Required.
destination
string
false
String - The output file pathname for populate action. File extension determines format (PDF or XDP for LiveCycle forms). If not specified, form is displayed in browser.
overwrite
boolean
false
Boolean - Whether to overwrite the destination file. Default: false
false
overwriteData
boolean
false
Boolean - Whether to overwrite existing data in form fields with data from the data source (populate action only). Default: false
false
XMLdata
string
false
String - XML data file pathname, XML object, or XML string. For populate: data to populate form fields. For read: variable name to store extracted XML data.
fdf
boolean
false
Boolean - If true, creates FDF format instead of XML (populate action). Default: false
false
fdfdata
string
false
String - FDF data file pathname. For populate: file to import FDF data from. For read: file to export FDF data to.
result
string
false
String - ColdFusion structure variable name to contain form field values (read action). Either result or XMLdata must be specified for read action.
Examples
Populating Form Fields with Data
Reading Form Field Values
Using XML Data File
FDF Data Handling
Multiple Form Fields with XML
Complex Form Processing Workflow
Conditional Field Population
Form Field Types Supported
The PDFForm component supports all standard PDF form field types:
Text Fields - Single and multi-line text input
Checkboxes - Boolean values (true/false)
Radio Buttons - Single selection from options
Dropdown Lists - Selection from predefined options
Signature Fields - Digital signature areas
Date Fields - Date picker controls
Data Format Requirements
When populating forms, ensure your data structure matches the field names in the PDF form. Field names are case-sensitive and must match exactly.
Related Components
PDF - Main PDF manipulation component
PDFFormParam - Specify individual form field parameters
Last updated
Was this helpful?
