GoToAction

Inheritance: java.lang.Object, com.aspose.pdf.PdfAction

public class GoToAction extends PdfAction

Represents a go-to action that changes the view to a specified destination (page, location, and magnification factor).

Constructors

ConstructorDescription
GoToAction(int page)Constructor for GoToAction class.
GoToAction(Page page)Constructor for GoToAction class.
GoToAction(Page page, int type, double[] values)Constructor for GoToAction class.
GoToAction(ExplicitDestination destination)Constructor.
GoToAction()Constructor.
GoToAction(Document doc, String name)Action which linked with Named Destination.

Methods

MethodDescription
getDestination()Gets the destination to jump to.
setDestination(IAppointment value)Sets the destination to jump to.

GoToAction(int page)

public GoToAction(int page)

Constructor for GoToAction class.

Parameters:

ParameterTypeDescription
pageintint value

GoToAction(Page page)

public GoToAction(Page page)

Constructor for GoToAction class.

Parameters:

ParameterTypeDescription
pagePagePage destination object to jump to.

GoToAction(Page page, int type, double[] values)

public GoToAction(Page page, int type, double[] values)

Constructor for GoToAction class.

Parameters:

ParameterTypeDescription
pagePageDestination page.
typeintDestination type.
valuesdouble[]Action parameters.

GoToAction(ExplicitDestination destination)

public GoToAction(ExplicitDestination destination)

Constructor.

Parameters:

ParameterTypeDescription
destinationExplicitDestinationExplicit destination.

GoToAction()

public GoToAction()

Constructor.

GoToAction(Document doc, String name)

public GoToAction(Document doc, String name)

Action which linked with Named Destination.

Parameters:

ParameterTypeDescription
docDocumentDocument where action will be created.
namejava.lang.StringName of the destination.

getDestination()

public IAppointment getDestination()

Gets the destination to jump to.

Returns: IAppointment - IAppointment value

setDestination(IAppointment value)

public void setDestination(IAppointment value)

Sets the destination to jump to.

Parameters:

ParameterTypeDescription
valueIAppointmentIAppointment value