Foxit PDF SDK
|
Public Member Functions | |
def | Action (action) |
Constructor, with another action object. More... | |
def | GetDict () |
Get PDF dictionary of current object. More... | |
def | GetDocument () |
Get the PDF document, to which current action belongs. More... | |
def | GetSubAction (index) |
Get a sub-action by index. More... | |
def | GetSubActionCount () |
Get the count of sub-actions. More... | |
def | GetType () |
Get action type. More... | |
def | InsertSubAction (index, sub_action) |
Insert a new sub-action to the location specified by index. More... | |
def | IsEmpty () |
Check whether current object is empty or not. More... | |
def | RemoveAllSubActions () |
Remove all the sub-actions. More... | |
def | RemoveSubAction (index) |
Remove a sub-action, specified by index. More... | |
def | SetSubAction (index, sub_action) |
Set a sub-action by index. More... | |
Static Public Member Functions | |
def | Create (dictionary) |
Create a new action, for specified action type. More... | |
Static Public Attributes | |
e_NewWindowFlagFalse = _fsdk.Action_e_NewWindowFlagFalse | |
"NewWindow" flag is false. | |
e_NewWindowFlagNone = _fsdk.Action_e_NewWindowFlagNone | |
No "NewWindow" flag. | |
e_NewWindowFlagTrue = _fsdk.Action_e_NewWindowFlagTrue | |
"NewWindow" flag is true. | |
e_TypeGoto = _fsdk.Action_e_TypeGoto | |
Action type: go-to action. | |
e_TypeGoTo3DView = _fsdk.Action_e_TypeGoTo3DView | |
Action type: go-to-3D-view action. | |
e_TypeGoToE = _fsdk.Action_e_TypeGoToE | |
Action type: embedded go-to action. | |
e_TypeGoToR = _fsdk.Action_e_TypeGoToR | |
Action type: remote go-to action. | |
e_TypeHide = _fsdk.Action_e_TypeHide | |
Action type: hide action. | |
e_TypeImportData = _fsdk.Action_e_TypeImportData | |
Action type: import-data action. | |
e_TypeJavaScript = _fsdk.Action_e_TypeJavaScript | |
Action type: JavaScript action. | |
e_TypeLaunch = _fsdk.Action_e_TypeLaunch | |
Action type: launch action. | |
e_TypeMovie = _fsdk.Action_e_TypeMovie | |
Action type: movie action. | |
e_TypeNamed = _fsdk.Action_e_TypeNamed | |
Action type: named action. | |
e_TypeRendition = _fsdk.Action_e_TypeRendition | |
Action type: rendition action. | |
e_TypeResetForm = _fsdk.Action_e_TypeResetForm | |
Action type: reset-form action. | |
e_TypeSetOCGState = _fsdk.Action_e_TypeSetOCGState | |
Action type: set-OCG-state action. | |
e_TypeSound = _fsdk.Action_e_TypeSound | |
Action type: sound action. | |
e_TypeSubmitForm = _fsdk.Action_e_TypeSubmitForm | |
Action type: submit-form action. | |
e_TypeThread = _fsdk.Action_e_TypeThread | |
Action type: thread action. | |
e_TypeTrans = _fsdk.Action_e_TypeTrans | |
Action type: transition action. | |
e_TypeUnknown = _fsdk.Action_e_TypeUnknown | |
Action type: unknown action. | |
e_TypeURI = _fsdk.Action_e_TypeURI | |
Action type: uniform resource identifier (URI) action. | |
PDF supports following standard action types:
"Go-To Action", "Remote Go-To Action", "Embedded Go-To Action", "Launch Action", "Thread Action", "URI
Action", "Sound Action","Movie Action", "Hide Action", "Named Action", "Submit-Form Action", "Reset-Form
Action", "Import-Data Action", "JavaScript Action", "Set-OCG-State Action", "Rendition Action","Transition
Action","Go-To-3D-View Action".
A PDF action may have sub-actions. When this action is triggered, its sub-actions should also be triggered in turn.
Class Action is the base class for all kinds of PDF actions. For concrete action types, please refer to derived classes. Function FoxitPDFSDKPython2.Action.Create can be used to create a new action – currently only support some action types. Please refer to comment of this function for more details. This class also offers functions to modify sub- actions.
def FoxitPDFSDKPython2.Action.Action | ( | action | ) |
Constructor, with another action object.
[in] | action | Another action object. |
|
static |
Create a new action, for specified action type.
The newly created action has no action data (except action type) yet. User needs to call the functions in concrete action classes to set action data.
[in] | document | A valid PDF document, to which the new action belongs. |
[in] | action_type | Action type, used to specify which type of action is to be created. Currently only support: FoxitPDFSDKPython2.Action.e_TypeGoto , FoxitPDFSDKPython2.Action.e_TypeURI , FoxitPDFSDKPython2.Action.e_TypeJavaScript , FoxitPDFSDKPython2.Action.e_TypeNamed , FoxitPDFSDKPython2.Action.e_TypeGoToR , FoxitPDFSDKPython2.Action.e_TypeGoToE , FoxitPDFSDKPython2.Action.e_TypeSubmitForm , FoxitPDFSDKPython2.Action.e_TypeResetForm , FoxitPDFSDKPython2.Action.e_TypeHide , FoxitPDFSDKPython2.Action.e_TypeLaunch , FoxitPDFSDKPython2.Action.e_TypeImportData , FoxitPDFSDKPython2.Action.e_TypeRendition . |
def FoxitPDFSDKPython2.Action.GetDict | ( | ) |
Get PDF dictionary of current object.
def FoxitPDFSDKPython2.Action.GetDocument | ( | ) |
Get the PDF document, to which current action belongs.
def FoxitPDFSDKPython2.Action.GetSubAction | ( | index | ) |
Get a sub-action by index.
[in] | index | Index of sub-action to be retrieved. Valid range: from 0 to (count-1). count is returned by function FoxitPDFSDKPython2.Action.GetSubActionCount . |
def FoxitPDFSDKPython2.Action.GetSubActionCount | ( | ) |
Get the count of sub-actions.
def FoxitPDFSDKPython2.Action.GetType | ( | ) |
Get action type.
def FoxitPDFSDKPython2.Action.InsertSubAction | ( | index, | |
sub_action | |||
) |
Insert a new sub-action to the location specified by index.
[in] | index | Index of the location, where the new sub-action is inserted. If this index value is below zero, the new sub-action will be inserted to be the first. If this index value equals or larger than current sub-action count, the new sub-action will be inserted to be the last. |
[in] | sub_action | New sub-action to be inserted. Currently only support following types as the new sub-action: FoxitPDFSDKPython2.Action.e_TypeGoto , FoxitPDFSDKPython2.Action.e_TypeURI , FoxitPDFSDKPython2.Action.e_TypeJavaScript , FoxitPDFSDKPython2.Action.e_TypeNamed , FoxitPDFSDKPython2.Action.e_TypeGoToR , FoxitPDFSDKPython2.Action.e_TypeGoToE , FoxitPDFSDKPython2.Action.e_TypeSubmitForm , FoxitPDFSDKPython2.Action.e_TypeResetForm , FoxitPDFSDKPython2.Action.e_TypeHide , FoxitPDFSDKPython2.Action.e_TypeLaunch , FoxitPDFSDKPython2.Action.e_TypeImportData , FoxitPDFSDKPython2.Action.e_TypeRendition . |
def FoxitPDFSDKPython2.Action.IsEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
def FoxitPDFSDKPython2.Action.RemoveAllSubActions | ( | ) |
Remove all the sub-actions.
def FoxitPDFSDKPython2.Action.RemoveSubAction | ( | index | ) |
Remove a sub-action, specified by index.
[in] | index | Index of sub-action to be retrieved. Valid range: from 0 to (count-1). count is returned by function FoxitPDFSDKPython2.Action.GetSubActionCount . |
def FoxitPDFSDKPython2.Action.SetSubAction | ( | index, | |
sub_action | |||
) |
Set a sub-action by index.
[in] | index | Index of sub-action to be retrieved. Valid range: from 0 to (count-1). count is returned by function FoxitPDFSDKPython2.Action.GetSubActionCount . |
[in] | sub_action | An action object to be set as a sub-action. Currently only support following types as sub-action: FoxitPDFSDKPython2.Action.e_TypeGoto , FoxitPDFSDKPython2.Action.e_TypeURI , FoxitPDFSDKPython2.Action.e_TypeJavaScript , FoxitPDFSDKPython2.Action.e_TypeNamed , FoxitPDFSDKPython2.Action.e_TypeGoToR , FoxitPDFSDKPython2.Action.e_TypeGoToE , FoxitPDFSDKPython2.Action.e_TypeSubmitForm , FoxitPDFSDKPython2.Action.e_TypeResetForm , FoxitPDFSDKPython2.Action.e_TypeHide , FoxitPDFSDKPython2.Action.e_TypeLaunch , FoxitPDFSDKPython2.Action.e_TypeImportData , FoxitPDFSDKPython2.Action.e_TypeRendition . |