Function: boolean DisableToolbar(boolean bDisable)
Description: Disables all the toolbars in the Adobe Reader. The method must be call after the PDF file opened.
Tips:
If you want to disable the toobars when you load a pdf file, you need put the method at OnDocumentOpened event.
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
function PDFViewer1_NotifyCtrlReady()
{
document.PDFViewer1.LoadFile (“e:\\OA_Reference2.pdf”);
}
function PDFViewer1_OnDocumentOpened(FileName)
{
document.PDFViewer1.DisableToolbar (true);
}
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=PDFViewer1 EVENT=NotifyCtrlReady>
<!–
PDFViewer1_NotifyCtrlReady();
//–>
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=PDFViewer1 EVENT=OnDocumentOpened(FileName)>
<!–
PDFViewer1_OnDocumentOpened(FileName);
//–>
</SCRIPT>
Leave a Reply
You must be logged in to post a comment.
Recent Comments