Hi acrobaters, I need help with an issue I am facing. I want the full Comment Toolbar to appear when I open a PDF in the browser with Reader installed.
I have the following code on a button click:
app.execMenuItem('ShowHideToolbarCommenting');
I have Reader Extended the PDF for commenting and it works as expected in Acrobat/Reader and the browser.
Using LC Designer, I move the script to the initialize event and it works only in Acrobat. Using Reader/browser the code does not fire when the PDF is opened.
Looking at the Javascript API guide the execmenuItem() is a privleged function, so I added the following code and saved it out as a .js file to the Reader Javascript folder but it is still not working in Reader/browser.
function enableAnnotateToolbar()
{
app.beginPriv();
app.execMenuItem('ShowHideToolbarCommenting');
app.endPriv();
}
app.trustedFunction(enableAnnotateToolbar);
Can anyone tell me how to get the exexmenuItem() function to fire upon initialization of the PDF in Reader/browser? The behavior is the same in both 8 and 9.
thanks in advance
It needs to be placed into a folder level script to work.
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs