Represents an action which goes to a destination in the current document.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data);
// Access button field
let field: PdfButtonField = document.form.fieldAt(0) as PdfButtonField;
// Access the second page
let secondPage: PdfPage = document.getPage(2);
// Create a PdfDestination for the specified page
let destination: PdfDestination = new PdfDestination(secondPage)
// Create a new PdfGoToAction with the specified destination
let gotoAction: PdfGoToAction = new PdfGoToAction(destination);
// Set the goto action to the button
field.actions.mouseEnter = gotoAction;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();
## Properties
### destination [`PdfDestination`](./pdfDestination)
Get the destination to be navigated.
### next [`PdfAction`](./pdfAction)
Get the next action to be performed after the action represented by this instance.