| FoxitPDFSDKforWeb v11.0.6 Archives Foxit PDF SDK for Web

Public Member Functions | List of all members
LaunchAction Class Reference
PDF » actions

Launch action object. More...

Inheritance diagram for LaunchAction:

## 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.

Deprecated:
  Action related APIs have been moved under each object.

See also
  Annot
  Widget
  PDFFormField
  PDFDoc

## 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

  fileSpec | FileSpec - 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

@2025 Foxit Software Incorporated. All rights reserved.