I've recently upgraded from Acrobat 5 to 8 Pro. Acrobat 8 introduces trustedFunctions and privileged content which is causing a warning message for all the message boxes in the PDF. I've also looked through the JS for API Acrobat API Reference and others but can not find a real example for the app.alert function. Here's the code that's causing the trouble. Would someone please show where to add the trustedFunction calls and the app.beginPriv() and app.endPriv()? I can then apply it on the other calls. This PDF is going out to external customers and that warning message shouldn't ever be seen by a client.
Thanks in advance,
Charlie
charlie6067
---------------------------------------------------------------------------------------------
//
//Page2:Page Open:Action2
//
/******* belongs to: Page-Actions:Page2:Page Open:Action2 *******/
// Displays a message box when PDF opens.
if (x != 1) {
app.alert("Text for this message box will be supplied by the Business. ", 3);
var x = 1;
}
//
//
Thanks,
Charlie
charlie6067