Acrobat Javascript code works in debugger but not on button?
Hi there,
Please can someone point me in the right direction.
I've put together some JS that reads a list of pdfs from a text form field.
For each file in the list a master pdf is opened, pages replaced and then the pdf is saved to a folder.
Paths to the files are set up with - var pathToThis = this.path.replace(this.documentFileName,""); which gives me the base location.
The code works fine in the JavaScript Debugger however when I take the code and add it to a button mouse up trigger it fails.
I've also tried putting the JS into a document level script but still it fails.
Is there some other way I can execute the JS outside of the Debugger? I was thinking of creating a custom menu item but I'm not sure if that would work.
Please can someone help?
Thanks in advance.
