Using Javascript in Adobe Reader
Posted
by godleuf
on Stack Overflow
See other posts from Stack Overflow
or by godleuf
Published on 2010-06-01T23:06:13Z
Indexed on
2010/06/01
23:13 UTC
Read the original article
Hit count: 295
Hi,
I am currently using the following script for a few documents:
var pp = this.getPrintParams();
pp.interactive = pp.constants.interactionLevel.automatic;
this.print(pp);
How do I add another command, say document.close()
so that it reads the print function and then follows the close document last? Do I simply add the close command right after the print command so it would read
var pp = this.getPrintParams();
pp.interactive = pp.constants.interactionLevel.automatic;
this.print(pp);
document.close();
Thanks.
© Stack Overflow or respective owner