Foxit PDF SDK
|
Public Member Functions | |
Filler (Form form, FillerAssistCallback assist) | |
Constructor. More... | |
Filler (Filler other) | |
Constructor, with another filler object. More... | |
void | HighlightFormFields (bool is_highlight) |
Decide whether to highlight form fields (including signature fields) or not. More... | |
void | HighlightFormFields (bool is_highlight, bool is_sign_highlight) |
Decide whether to highlight signature fields and other form fields or not. More... | |
bool | IsEmpty () |
Check whether current object is empty or not. More... | |
bool | KillFocus () |
Kill focus from form. More... | |
bool | OnChar (int char_code, int flags) |
Call this function when a character code is about to be inputted to a form field. More... | |
bool | OnCopy () |
Call this function when the popup menu item "Copy" is down. More... | |
bool | OnCut () |
Call this function when the popup menu item "Cut" is down. More... | |
bool | OnDelete () |
Call this function when the popup menu item "Delete" is down. More... | |
bool | OnKeyDown (int key_code, int flags) |
Call this function when key on the keyboard is down. More... | |
bool | OnKeyUp (int key_code, int flags) |
Call this function when key on the keyboard is up. More... | |
bool | OnLButtonDoubleClick (PDFPage page, PointF point, int flags) |
Call this function when left mouse button is double clicked. More... | |
bool | OnLButtonDown (PDFPage page, PointF point, int flags) |
Call this function when left mouse button is down. More... | |
bool | OnLButtonUp (PDFPage page, PointF point, int flags) |
Call this function when left mouse button is up. More... | |
bool | OnMouseEnter (PDFPage page, PointF point, int flags) |
(Reserved, unsupported yet) Call this function when mouse enters somewhere. More... | |
bool | OnMouseHover (PDFPage page, PointF point, int flags) |
(Reserved, unsupported yet) Call this function when mouse hovers somewhere. More... | |
bool | OnMouseLeave (PDFPage page, PointF point, int flags) |
(Reserved, unsupported yet) Call this function when mouse leaves somewhere. More... | |
bool | OnMouseMove (PDFPage page, PointF point, int flags) |
Call this function when mouse moves. More... | |
bool | OnMouseWheel (PDFPage page, PointF point, int delta, int flags) |
(Reserved, unsupported yet) Call this function when mouse wheel moves. More... | |
bool | OnPaste () |
Call this function when the popup menu item "Paste" is down. More... | |
bool | OnRButtonDoubleClick (PDFPage page, PointF point, int flags) |
(Reserved, unsupported yet) Call this function when right mouse button is double clicked. More... | |
bool | OnRButtonDown (PDFPage page, PointF point, int flags) |
Call this function when right mouse button is down. More... | |
bool | OnRButtonUp (PDFPage page, PointF point, int flags) |
Call this function when right mouse button is up. More... | |
bool | OnSelectAll () |
Call this function when the popup menu item "Select All" is down. More... | |
bool | OnWheelButtonDoubleClick (PDFPage page, PointF point, int flags) |
(Reserved, unsupported yet) Call this function when mouse wheel button is double clicked. More... | |
bool | OnWheelButtonDown (PDFPage page, PointF point, int flags) |
(Reserved, unsupported yet) Call this function when mouse wheel button is down. More... | |
bool | OnWheelButtonUp (PDFPage page, PointF point, int flags) |
(Reserved, unsupported yet) Call this function when mouse wheel button is up. More... | |
void | Render (PDFPage page, Matrix2D matrix, Renderer renderer) |
Draw the currently focused form control on the page. More... | |
bool | SetFocus (Control control) |
Set focus on a form control. More... | |
void | SetHighlightColor (uint color) |
Set the highlight color used for highlighting form fields. More... | |
void | ShowOverflowIndicator (bool is_show_overflow_indicator) |
Decide whether to show the overflow indicator when the text in text field overflow. More... | |
This class represents a form filler used for filling PDF form. There should be only one form filler object for an interactive form, so do not construct form filler for one Form object more than one time. User is recommended to implement an foxit.pdf.actions.ActionCallback and set it to Foxit PDF SDK by function common.Library.SetActionCallback , in order to implement more features of form filler.
|
strong |
Enumeration for key event flags.
Values of this enumeration can be used alone or in combination.
|
strong |
Enumeration for virtual key code.
Values of this enumeration should be used alone.
|
inline |
Constructor.
There can be only one form filler for a form.
[in] | form | A valid PDF form. |
[in] | assist | An assistant callback class for form filler. This should be implemented by user and should not be null. |
|
inline |
Constructor, with another filler object.
[in] | other | Another filler object. |
|
inline |
Decide whether to highlight form fields (including signature fields) or not.
All types of form fields can be highlighted except push button fields. If this function is not called, Foxit PDF SDK will highlight all form fields (including signature fields) by default.
[in] | is_highlight | true means to highlight form fields (including signature fields), and false means not to highlight form fields (including signature fields). |
|
inline |
Decide whether to highlight signature fields and other form fields or not.
All types of form fields can be highlighted except push button fields. If this function is not called, Foxit PDF SDK will highlight all form fields by default apart from signature fields which are not highlighted by default.
[in] | is_highlight | This boolean value is used for non-signature fields: true means to highlight form fields, and false means not to highlight form fields. |
[in] | is_sign_highlight | This boolean value is used only for siganture fields: true means to highlight signature fields, and false means not to highlight signature fields. |
|
inline |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
|
inline |
Kill focus from form.
|
inline |
Call this function when a character code is about to be inputted to a form field.
[in] | char_code | A character code, in UTF16-LE encoding. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
|
inline |
Call this function when the popup menu item "Copy" is down.
|
inline |
Call this function when the popup menu item "Cut" is down.
|
inline |
Call this function when the popup menu item "Delete" is down.
|
inline |
Call this function when key on the keyboard is down.
[in] | key_code | The key code. Please refer to values starting from foxit.pdf.interform.Filler.VirtualKeyCode.e_VkeyUnknown and this should be one of these values. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
|
inline |
Call this function when key on the keyboard is up.
[in] | key_code | The key code. Please refer to values starting from foxit.pdf.interform.Filler.VirtualKeyCode.e_VkeyUnknown and this should be one of these values. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
|
inline |
Call this function when left mouse button is double clicked.
[in] | page | A valid PDF page object. |
[in] | point | A point where left mouse button is up in the page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
Call this function when left mouse button is down.
[in] | page | A valid PDF page object. |
[in] | point | A point where left mouse button is down in the page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
Call this function when left mouse button is up.
[in] | page | A valid PDF page object. |
[in] | point | A point where left mouse button is up in the page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
(Reserved, unsupported yet) Call this function when mouse enters somewhere.
[in] | page | A valid PDF page object. |
[in] | point | A point where left mouse button is up in the page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
(Reserved, unsupported yet) Call this function when mouse hovers somewhere.
[in] | page | A valid PDF page object. |
[in] | point | A point where left mouse button is up in the page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
(Reserved, unsupported yet) Call this function when mouse leaves somewhere.
[in] | page | A valid PDF page object. |
[in] | point | A point where left mouse button is up in the page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
Call this function when mouse moves.
[in] | page | A valid PDF page object. |
[in] | point | A point where left mouse button is up in the page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
|
inline |
(Reserved, unsupported yet) Call this function when mouse wheel moves.
[in] | page | A valid PDF page object. |
[in] | point | A point where left mouse button is up in the page, in PDF coordinate system. |
[in] | delta | Indicates the amount the mouse wheel has been moved. A positive value means to be moved forward, and a negative value means to be moved backward. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
|
inline |
Call this function when the popup menu item "Paste" is down.
|
inline |
(Reserved, unsupported yet) Call this function when right mouse button is double clicked.
[in] | page | A valid PDF page object. |
[in] | point | A point where left mouse button is up in the page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
Call this function when right mouse button is down.
[in] | page | A valid PDF page object. |
[in] | point | A point where left mouse button is up in the page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
Call this function when right mouse button is up.
[in] | page | A valid PDF page object. |
[in] | point | A point where left mouse button is up in the page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
|
inline |
Call this function when the popup menu item "Select All" is down.
|
inline |
(Reserved, unsupported yet) Call this function when mouse wheel button is double clicked.
[in] | page | A valid PDF page object. |
[in] | point | A point where left mouse button is up in the page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
(Reserved, unsupported yet) Call this function when mouse wheel button is down.
[in] | page | A valid PDF page object. |
[in] | point | A point where left mouse button is up in the page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
(Reserved, unsupported yet) Call this function when mouse wheel button is up.
[in] | page | A valid PDF page object. |
[in] | point | A point where left mouse button is up in the page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from foxit.pdf.interform.Filler.EventFlags.e_EventFlagShiftKey and this should be one or a combination of these values. |
Draw the currently focused form control on the page.
If there is no focused form control on the page, nothing will be drawn by this function. The focused form control has to be the topmost visible element, so that it should be always rendered after page content and all the other annotations have been rendered.
For how to render form control (which is associated with widget annotations), please refer to the recommended flow mentioned in comment of class Renderer.
[in] | page | A valid PDF page object. |
[in] | matrix | The transformation matrix used for rendering, which is usually returned by function PDFPage.GetDisplayMatrix . |
[in] | renderer | A valid renderer object for rendering. |
|
inline |
Set focus on a form control.
[in] | control | A form control object. If this is constructed by default constructor and not set any value, that means no focus control. |
|
inline |
Set the highlight color used for highlighting form fields.
If this function is not called, Foxit PDF SDK will use a kind of light blue grey color (value 0x80C8D2FF) by default.
[in] | color | The highlight color to be set for highlighting form fields. |
|
inline |
Decide whether to show the overflow indicator when the text in text field overflow.
If this function is not called, Foxit PDF SDK will not show form field overflow indicator by default.
[in] | is_show_overflow_indicator | true means to show overflow indicator when the text in text field overflow, and false means not to show overflow indicator in this case. |