2. use otherDoc not this
Thanks very much for your quick reply. I tried :
var otherDoc = app.openDoc("Form2.pdf", this); var pp = otherDoc.getPrintParams();
But it doesn't work. The PDF opens but it doesn't print
Are both files located in the same folder?
Does the file open, but doesn't print? Or does it not open at all?
Is there an error message in the JS Console when you run this code?
On Fri, Apr 14, 2017 at 9:47 AM, doobeedoobee <firstname.lastname@example.org>
Both files are in the same folder. The file opens but doesn't print.
There is an error message that says otherDoc is not defined.
Thanks for your help
I've just found out about needing to set disclosure to true. I'm trying to do this but am finding that I can't get document level scripts to run. I'm using a test script with an alert but the alert isn't happening...
Have you set the disclosed property?
The alert is not happening and the otherDoc variable is still not defined. Am I missing something obvious? Thanks
Fixed it. Changed it to just
It all seems to be working now. It's now printing from the other PDF.
Thanks very much for your help