This content has been marked as final. Show 8 replies
Thanks for the reply.
> what is 'this' object?
very important point: the meaning of "this" can change according to
how the script is run.
For printing a PDF from within the PDF you can use:
this.print(bUI, nStart, nEnd, bSilent, bShrinkToFit, bPrintAsImage, bReverse, bAnnotations);
// Get the printParams object of the default printer
var pp = this.getPrintParams();
// Set some properties
pp.interactive = pp.constants.interactionLevel.automatic;
If you want the command to run each and every time the PDF is opened, place it at the Document Level. But I for one would not appreciate this "feature".