The namespace for anything to do with PDF actions and action dispatch. Actions can be defined by providing a JavaScript object that has the desired properties, and a name property defining the action subtype it represents. See documentation for specific action types for allowable properties.
Examples
// 5.1 and after WebViewer(...) .then(function(instance) { var Actions = instance.Actions; // Actions.SomeClass });
// 4.0 ~ 5.0 var viewerElement = document.getElementById('viewer'); var viewer = new PDFTron.WebViewer(...); viewerElement.addEventListener('ready', function() { var viewerIframe = document.querySelector('iframe'); var Actions = viewerIframe.contentWindow.Actions; // Actions.SomeClass });