![]() |
PDFix SDK
6.19.0
|
PdfFormField class. More...
#include <pdfix.h>
Public Member Functions | |
virtual PdfFieldType | GetType () const =0 |
Gets the type of field. More... | |
virtual PdfFieldFlags | GetFlags () const =0 |
Gets the form field's flags. More... | |
virtual bool | SetFlags (PdfFieldFlags flags)=0 |
Sets the form field's flags. More... | |
virtual int | GetValue (wchar_t *buffer, int len) const =0 |
Gets the field's value as string. More... | |
virtual bool | SetValue (const wchar_t *value)=0 |
Sets the field's value as string. Multiple values should be comma-separated. More... | |
virtual int | GetDefaultValue (wchar_t *buffer, int len) const =0 |
Gets the field's default value as string. More... | |
virtual int | GetFullName (wchar_t *buffer, int len) const =0 |
Gets the field's full name within the document AcroForm field tree. More... | |
virtual int | GetTooltip (wchar_t *buffer, int len) const =0 |
Gets the field's tooltip. More... | |
virtual int | GetNumOptions () const =0 |
Gets the number of elements in the Opt array. More... | |
virtual int | GetOptionValue (int index, wchar_t *buffer, int len) const =0 |
Gets the field's option value. More... | |
virtual int | GetOptionCaption (int index, wchar_t *buffer, int len) const =0 |
Gets the field's option caption. More... | |
virtual PdfAction * | GetAction ()=0 |
Gets a field's action object. More... | |
virtual PdfAction * | GetAAction (PdfActionEventType event)=0 |
Gets a field's additional action object. More... | |
virtual int | GetMaxLength () const =0 |
Gets maximum length of the field's text, in characters. More... | |
virtual int | GetWidgetExportValue (const PdfAnnot *annot, wchar_t *buffer, int len) const =0 |
Gets the field's widget export value. More... | |
virtual PdsDictionary * | GetObject ()=0 |
Gets the field's dictionary object. More... | |
virtual int | GetNumExportValues () const =0 |
Gets the number of field's export values of the radio button and check box field. More... | |
virtual int | GetExportValue (int index, wchar_t *buffer, int len) const =0 |
Gets the field's export value for n-th widget of the form field. More... | |
virtual void | NotifyWillChange (const wchar_t *key)=0 |
virtual void | NotifyDidChange (const wchar_t *key, int err)=0 |
PdfFormField class.
PdfFormField object represents interactive form dictionary that shall be referenced from the AcroForm entry in the document catalogue
|
pure virtual |
Gets a field's additional action object.
event | The event which additional action to get. |
|
pure virtual |
Gets a field's action object.
|
pure virtual |
Gets the field's default value as string.
buffer | (filled by method) If the buffer is null function returns required length of string |
len | Length of a buffer to be filled in. |
|
pure virtual |
Gets the field's export value for n-th widget of the form field.
index | the index of the widget in the form field |
buffer | (filled by method) If the buffer is null function returns required length of string |
len | Length of a buffer to be filled in. |
|
pure virtual |
Gets the form field's flags.
|
pure virtual |
Gets the field's full name within the document AcroForm field tree.
buffer | (filled by method) If the buffer is null function returns required length of string |
len | Length of a buffer to be filled in. |
|
pure virtual |
Gets maximum length of the field's text, in characters.
|
pure virtual |
Gets the number of field's export values of the radio button and check box field.
|
pure virtual |
Gets the number of elements in the Opt array.
|
pure virtual |
Gets the field's dictionary object.
|
pure virtual |
Gets the field's option caption.
index | The index of option to retrieve. |
buffer | (filled by method) If the buffer is null function returns required length of string |
len | Length of a buffer to be filled in. |
|
pure virtual |
Gets the field's option value.
index | The index of option to retrieve. |
buffer | (filled by method) If the buffer is null function returns required length of string |
len | Length of a buffer to be filled in. |
|
pure virtual |
Gets the field's tooltip.
buffer | (filled by method) If the buffer is null function returns required length of string |
len | Length of a buffer to be filled in. |
|
pure virtual |
Gets the type of field.
|
pure virtual |
Gets the field's value as string.
buffer | (filled by method) If the buffer is null function returns required length of string |
len | Length of a buffer to be filled in. |
|
pure virtual |
Gets the field's widget export value.
annot | The widget annotation that holds the export value |
buffer | (filled by method) If the buffer is null function returns required length of string |
len | Length of a buffer to be filled in. |
|
pure virtual |
Broadcasts a PdfFormFieldDidChange() notification. Clients must call this method after making low level changes on the field object.
key | The name of the key in the field's dictionary that is changing. |
err | An error code to pass to any method registered to receive the PdfFormFieldDidChange() notification. Pass zero if the form field was changed successfully. Pass a nonzero value if an error occurred while changing the form field. |
|
pure virtual |
Broadcasts a PdfFormWillChange() notification. Clients must call this method before making low level changes on the field object.
key | The name of the key in the field's dictionary that is changing. |
|
pure virtual |
Sets the form field's flags.
|
pure virtual |
Sets the field's value as string. Multiple values should be comma-separated.
buffer | The new form field string value |