25 #ifndef _FSPDF_FORM_W_H_ 26 #define _FSPDF_FORM_W_H_ 448 #ifndef _FSPDF_DEF_HANDLE_FORMFILLER_ 449 #define _FSPDF_DEF_HANDLE_FORMFILLER_ 452 FSCRT_DEFINEHANDLE(FSPDF_FORMFILLER);
457 #ifndef _FS_DEF_FORMINTERACTION_WINDOWLESSEXTENT_ 458 #define _FS_DEF_FORMINTERACTION_WINDOWLESSEXTENT_ 461 typedef struct _FPDF_FORMINTERACTION_WINDOWLESSEXTENT_
880 #ifndef _FSPDF_DEF_STRUCTURE_JAVASCRIPTEVENT_ 881 #define _FSPDF_DEF_STRUCTURE_JAVASCRIPTEVENT_ 885 typedef struct _FSPDF_JAVASCRIPTEVENT
FS_RESULT FSPDF_FormField_RemoveAllActions(FSPDF_FORM form, const FSCRT_BSTR *fieldName, FS_INT32 trigger)
Remove all actions associated with a field (except signature field) and a trigger type in a form...
FS_RESULT FSPDF_FormField_SetOptions(FSPDF_FORM form, const FSCRT_BSTR *fieldName, const FSPDF_CHOICEOPTION *options, FS_INT32 count)
Set list box or combo box options.
Structure for rectangle, in float.
Definition: fs_base_r.h:2078
FS_RESULT FSPDF_Form_AddField(FSPDF_FORM form, FSCRT_PAGE page, const FSCRT_BSTR *fieldName, FS_INT32 fieldType, FSCRT_RECTF *rect, FSPDF_FORMCONTROL *formControl)
Add a form field to arco form, and also create a new form control with the field. ...
FS_RESULT FSPDF_FormField_SetTopVisibleIndex(FSPDF_FORM form, const FSCRT_BSTR *fieldName, FS_INT32 index)
Set top index for scrollable list boxes.
FS_RESULT FSPDF_FormField_SetValue(FSPDF_FORM form, const FSCRT_BSTR *fieldName, const FSCRT_BSTR *value)
Set value of a field (except signature field).
Structure for list box and combo box option only.
Definition: fpdf_form_r.h:638
FS_BOOL bRc
Used for validation. Indicates whether a particular event in the event chain should succeed...
Definition: fpdf_form_w.h:898
FS_RESULT FSPDF_FormField_SetDefaultValue(FSPDF_FORM form, const FSCRT_BSTR *fieldName, const FSCRT_BSTR *value)
Set default value of the field (except signature field).
FS_RESULT FSPDF_FormField_ValidateValueEvent(FSPDF_FORM form, const FSCRT_BSTR *fieldName, FSPDF_JAVASCRIPTEVENT *jsEvent)
Perform the form field javascript to validate whether the user input value is valid.
FS_DWORD lStructSize
The size of the data structure. It must be set to sizeof(FSPDF_FORMINTERACTION_WINDOWLESS).
Definition: fpdf_form_w.h:464
FS_RESULT FSPDF_FormField_SetAlignment(FSPDF_FORM form, const FSCRT_BSTR *fieldName, FS_INT32 alignment)
Set alignment property of the field's text, only useful for text field and list box.
FS_RESULT FSPDF_FormField_Calculate(FSPDF_FORM form, const FSCRT_BSTR *fieldName)
Perform the form field javascript to calculate the values of form fields.
void(* FSCRT_CALLBACK_TIMER)(FS_INT32 timer)
Declares a pointer type for the callback function for the FSPDF_FORMFILL_INFO::SetTimer method...
Definition: fs_app_r.h:289
FS_RESULT FSPDF_FormFiller_SetHighlightColor(FSPDF_FORMFILLER filler, FS_INT32 fieldType, FS_ARGB color)
Set the highlight color for the form field.
FS_INT32 nEnd
Indicate the position of a field's value where the strChange end. [in].
Definition: fpdf_form_w.h:894
FS_RESULT FSPDF_FormFiller_End(FSPDF_FORMFILLER filler)
Finish the form filling.
FS_RESULT FSPDF_Form_SetDefaultAppearance(FSPDF_FORM form, const FSPDF_DEFAULTAPPEARANCE *defAppearance)
Set default appearance of a form.
unsigned int FS_DWORD
32-bit unsigned integer.
Definition: fs_base_r.h:142
FS_RESULT FSPDF_FormField_SetFlags(FSPDF_FORM form, const FSCRT_BSTR *fieldName, FS_DWORD flags)
Set flags specifying various characteristics of the field (except signature field).
FS_RESULT FSPDF_FormControl_SetChecked(FSPDF_FORMCONTROL formControl, FS_BOOL checked)
Set check box or radio button's state.
FSCRT_BSTR strValue
Value has different meanings for different field events such as KeyStroke,Validate,Format...[in/out].
Definition: fpdf_form_w.h:888
FS_RESULT FSPDF_Form_ExportToXML(FSPDF_FORM form, FSCRT_FILE xmlFile)
Export the form data to a XML file.
FS_RESULT FSPDF_FormFiller_Begin(FSPDF_FORM form, FSPDF_FORMINTERACTION_WINDOWLESS *windowless, FSPDF_FORMFILLER *filler)
Begin the form filling.
FS_RESULT FSPDF_FormControl_DoJavaScriptAction(FSPDF_FORMCONTROL control, FS_INT32 trigger)
Perform the form control javascript which is specified by the trigger.
FS_RESULT FSPDF_Doc_CreateForm(FSCRT_DOCUMENT document, FSPDF_FORM *form)
Create an arco form.
FS_RESULT FSPDF_Form_SetFieldsInCalculationOrder(FSPDF_FORM form, const FSCRT_BSTR *fieldNames, FS_DWORD count)
Set calculation order in a form.
int FS_INT32
32-bit signed integer.
Definition: fs_base_r.h:175
FS_BOOL bWillCommit
Verifies the current keystroke event before the data is committed. [in].
Definition: fpdf_form_w.h:896
FS_RESULT FSPDF_FormField_Format(FSPDF_FORM form, const FSCRT_BSTR *fieldName, FS_BOOL *isFormated)
Perform the form field javascript to format the values of form fields.
FS_RESULT FSPDF_FormFiller_ShowHighlight(FSPDF_FORMFILLER filler, FS_BOOL show)
Whether to show the highlight of form field or not.
Structure for javascript event.
Definition: fpdf_form_w.h:885
FS_RESULT FSPDF_FormField_RemoveAction(FSPDF_FORM form, const FSCRT_BSTR *fieldName, FS_INT32 trigger, FS_INT32 index)
Remove an action associated with a field (except signature field) and a trigger type by index in a fo...
Structure for default appearance.
Definition: fpdf_base_r.h:278
Structure for windowless form interaction information.
Definition: fpdf_form_w.h:461
Structure for an action data.
Definition: fpdf_base_r.h:841
int FS_BOOL
Boolean type (This should be TRUE or FALSE).
Definition: fs_base_r.h:133
FS_INT32 nStart
Indicate the position of a field's value where the strChange start. [in].
Definition: fpdf_form_w.h:892
FS_RESULT FSPDF_FormField_InsertAction(FSPDF_FORM form, const FSCRT_BSTR *fieldName, FS_INT32 trigger, FS_INT32 index, const FSPDF_ACTIONDATA *actionData)
Insert an action associated with a field (except signature field) and a trigger type at a specified i...
void * FS_LPVOID
A pointer to any types.
Definition: fs_base_r.h:127
FS_RESULT FSPDF_FormControl_SetDefaultChecked(FSPDF_FORMCONTROL formControl, FS_BOOL checked)
Set check box or radio button's default state.
FS_RESULT FSPDF_Form_SetConstructAppearancesFlag(FSPDF_FORM form, FS_BOOL needConstruct)
Set a flag that specifies whether to construct appearances when loading form controls.
FS_RESULT FSPDF_FormField_RemoveControl(FSPDF_FORM form, const FSCRT_BSTR *fieldName, FSPDF_FORMCONTROL formControl)
Remove a form control from a form field.
unsigned int FS_ARGB
ARGB color type, 32 bits, ((b) | ((g) << 8) | ((r) << 16)) | ((a) << 24)
Definition: fs_base_r.h:145
FS_RESULT FSPDF_FormField_ValidateValue(FSPDF_FORM form, const FSCRT_BSTR *fieldName, const FSCRT_BSTR *value, FS_BOOL *isValid)
Perform the form field javascript to validate whether the user input value is valid.
FS_RESULT FSPDF_Form_ImportFromXML(FSPDF_FORM form, FSCRT_FILE xmlFile)
Import the form data from a XML file.
FS_LPVOID clientData
The user-supplied data.
Definition: fpdf_form_w.h:467
FS_RESULT FSPDF_Form_SetAlignment(FSPDF_FORM form, FS_INT32 alignment)
Set alignment property of a form, as a document-wide default value.
Structure for 2D matrix.
Definition: fs_base_r.h:2130
Structure for byte string.
Definition: fs_base_r.h:611
FS_RESULT FSPDF_Form_RenameField(FSPDF_FORM form, const FSCRT_BSTR *fieldName, const FSCRT_BSTR *newFieldName)
Rename a field to a new name.
FS_RESULT FSPDF_FormField_SetDefaultAppearance(FSPDF_FORM form, const FSCRT_BSTR *fieldName, const FSPDF_DEFAULTAPPEARANCE *defAppearance)
Set default appearance to the specified field (except signature field).
FS_RESULT FSPDF_FormField_SetAction(FSPDF_FORM form, const FSCRT_BSTR *fieldName, FS_INT32 trigger, FS_INT32 index, const FSPDF_ACTIONDATA *actionData)
Update an action associated with a field (except signature field) and a trigger type at a specified i...
FS_RESULT FSPDF_Form_Reset(FSPDF_FORM form, const FSCRT_BSTR *fieldNames, FS_INT32 count, FS_BOOL bInclude)
Reset data in fields to their default value.
FS_RESULT FSPDF_FormField_SetMappingName(FSPDF_FORM form, const FSCRT_BSTR *fieldName, const FSCRT_BSTR *mappingName)
Set mapping name to be used when exporting interactive form field data from the document (except sign...
FSCRT_BSTR strChange
The string which will be part of a field's value. [in].
Definition: fpdf_form_w.h:890
FS_RESULT FSPDF_Form_ImportFromFDFDoc(FSPDF_FORM form, FSCRT_DOCUMENT fdfDoc)
Import data in FDF document to fill a form.
FS_RESULT FSPDF_FormControl_SetExportValue(FSPDF_FORMCONTROL formControl, const FSCRT_BSTR *exportValue)
Set option's export value.
FS_RESULT FSPDF_Form_RemoveField(FSPDF_FORM form, const FSCRT_BSTR *fieldName)
Remove a form field from arco form.
FS_RESULT FSPDF_FormField_SetAlternateName(FSPDF_FORM form, const FSCRT_BSTR *fieldName, const FSCRT_BSTR *alternateName)
Set alternate name to be used in place of the actual field (except signature field) name...
FS_RESULT FSPDF_FormField_ValidateKeyStrokeEvent(FSPDF_FORM form, const FSCRT_BSTR *fieldName, FSPDF_JAVASCRIPTEVENT *jsEvent)
Perform the form field javascript to validate whether the input of key stroke is valid.
int FS_RESULT
Result code for functions in Foxit PDF SDK.
Definition: fs_base_r.h:160
FS_RESULT FSPDF_FormFiller_TriggerWindowlessEvent(FSPDF_FORMFILLER filler, FSCRT_PAGE page, FSCRT_MATRIX *page2Device, FS_DWORD eventType, FS_LPVOID eventData)
Trigger the platform event for the windowless form filling.
FS_RESULT FSPDF_FormField_FormatEvent(FSPDF_FORM form, const FSCRT_BSTR *fieldName, FSPDF_JAVASCRIPTEVENT *jsEvent)
Perform the form field javascript to format the values of form fields.
FS_RESULT FSPDF_Form_ExportToFDFDoc(FSPDF_FORM form, FSCRT_DOCUMENT fdfDoc)
Export data in a form to a FDF document.
FS_RESULT FSPDF_FormField_SetMaxLen(FSPDF_FORM form, const FSCRT_BSTR *fieldName, FS_INT32 maxLen)
Set maximum length of the field's text (except signature field), in characters.
FS_RESULT FSPDF_FormField_ValidateKeyStroke(FSPDF_FORM form, const FSCRT_BSTR *fieldName, const FSCRT_BSTR *value, FS_BOOL *isValid)
Perform the form field javascript to validate whether the input of key stroke is valid.