FoxitPDFSDKforWeb  v10.0.4
Foxit PDF SDK for Web
All Classes Functions Variables Enumerations Enumerator Modules Pages
GoToAction Class Reference

GoTo action object. More...

Inheritance diagram for GoToAction:
Action

Public Member Functions

 getDestination ()
 Get the destination information. More...
 
 setDestination (destination)
 Set the destination information. 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

GoTo action object.

Member Function Documentation

◆ getDestination()

GoToAction::getDestination ( )
inline

Get the destination information.

Returns
object - A destination object.

◆ setDestination()

GoToAction::setDestination (   destination)
inline

Set the destination information.

Parameters
destinationobjectA valid destination object to be set.
destination.zoomModestringSet the zoom mode.Please refer to values starting fromZoomMode and this would be one of these values.
destination.zoomFactornumberSet zoom factor.This is only useful when zoom mode is ZoomXYZ. For ZoomXYZ, if the zoom factor is 0, that means just use current zoom factor of application as the destination zoom factor. For other zoom mode, this function will be 0. Valid when the zoomMode is ZoomXYZ.
destination.pageIndexstringThe index of the destination page in the PDF document.
destination.leftstringSet left position value. Valid when the zoomMode is ZoomXYZ or ZoomFitRect.
destination.topstringSet top position value. Valid when the zoomMode is ZoomXYZ or ZoomFitRect or ZoomFitHorz.
destination.rightstringSet right position value. Valid when the zoomMode is ZoomFitRect.
destination.bottomstringSet bottom position value. Valid when the zoomMode is ZoomFitRect.
Returns
Promise<object> - An action object.

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