FoxitPDFSDKforWeb  v10.0.0
Foxit PDF SDK for Web
LaunchAction Class Reference

Launch action object. More...

Inheritance diagram for LaunchAction:
Action Action

Public Member Functions

 getFileSpec ()
 Get file specifications. More...
 
 setFileSpec (fileSpec)
 Set file specifications. More...
 
- Public Member Functions inherited from Action
 getSubAction (index)
 Get a sub-action by index. More...
 
 getSubActionCount ()
 Get the count of sub-actions. More...
 
 getType ()
 Get action type. More...
 
 insertSubAction (index, action)
 Insert a new sub-action to the location specified by index. More...
 
 removeAllSubActions ()
 Remove all the sub-actions. More...
 
 removeSubAction (index)
 Remove a sub-action, specified by index. More...
 
 setSubAction (index, action)
 Set a sub-action by index. More...
 

Detailed Description

Launch action object.

Member Function Documentation

◆ getFileSpec()

LaunchAction::getFileSpec ( )
inline

Get file specifications.

Returns
FileSpec - The file specifications object.
Example:
function example (action) {
action.getFileSpec();
}
Since
10.0.0

◆ setFileSpec()

LaunchAction::setFileSpec (   fileSpec)
inline

Set file specifications.

Parameters
fileSpecFileSpec - The file specifications object.
Example:
async function example (action) {
const FileSpec = PDFViewCtrl.PDF.common.FileSpec;
let fileSpec = new FileSpec({
fileName: './example.pdf',
});
await action.setFileSpec(fileSpec);
}
Since
10.0.0

Foxit Software Corporation Logo
@2024 Foxit Software Incorporated. All rights reserved.