fires before loading of the PDF file begins
$$("pdfviewer").attachEvent("onBeforeLoad", function(){ ... });
Returning false from the event handler will block further processing.