function main() {
  // Set up an event listener to catch scripting messages which are sent prior
  // to the PDFViewer being created.
  window.addEventListener('message', handleScriptingMessage, false);

  createBrowserApi().then(initViewer);
}
/**
 * Entrypoint for starting the PDF viewer. This function obtains the browser
 * API for the PDF and constructs a PDFViewer object with it.
 */
Entrypoint for starting the PDF viewer. This function obtains the browser
API for the PDF and constructs a PDFViewer object with it.
Entrypoint for starting the PDF viewer . This function obtains the browser API for the PDF and constructs a PDFViewer object with it .
function main() {
  window.addEventListener('message', handleScriptingMessage, false);
  createBrowserApi().then(initViewer);
}
function main ( ) { window . addEventListener ( 'message' , handleScriptingMessage , false ) ; createBrowserApi ( ) . then ( initViewer ) ; }
Entrypoint for starting the PDF viewer.
Entrypoint for starting the PDF viewer .
// Set up an event listener to catch scripting messages which are sent prior // to the PDFViewer being created.