Hi there!
I´m looking for a (javascript) popup menue to open other (pdf) files and place it into a new window.
I work with this script:
// Declare pop-up menu properties as an array.
var aParams = [
{cName: "Adobe Web Page", cReturn: "www.adobe.com"},
{cName: "-"},
{cName: "Second Page",
cReturn: "index/page-2.pdf"},
{cName: "Third Page",
cReturn: "index/page-3.pdf"}
];
// Apply the function app.popUpMenuEx to the app object, with an array
// of parameters aParams
var cChoice = app.popUpMenuEx.apply( app, aParams );
if ( cChoice != null ) app.launchURL(cChoice);
It works fine so far, but it opens the new pdf-file in the web-browser. It should be opened within the Acrobat Reader application.
Has anyone an idea?
Thanks for answering!!!
"Launches a URL in a browser window."
Have you looked at the 'openDoc' method:
"Opens a specified PDF document and returns its Doc object. This object can be used by the script to call methods, or to get or set properties in the newly opened document."
George Kaiser