Set printer to print reverse when the document open

Hello all,

I was trying to write a script on document level in acrobat 9, but I did not get any result. I want to:

when the document open, this checks off the print reverse box if not checked, and when the document close remove the print reverse option, so the user will not do anything with the setting, he will complete the form then press the print button. I don't want to add a button for print action, he will use the reader print symbol.

I used :

function PrintReverse() {
breverse: true
}
PrintReverse();


Can you help me please?

Thank you


ahmed morsy


2 Answers

You are asking to temporarily change the user's default printer settings, which can't be done with a document level script. You can use javascript to print the document pages in reverse order but you would need your own trigger like document open, will save, or a print button. You can't do this with the Reader printer icon.


David Dagley   

Once again, you can't control the printer dialog without a print script but you can control it in a print script (it does not change the default printer settings). So for example, if you want to automatically open the printer dialog when the document opens and have the reverse pages box checked, you would do it like this:

var pp=this.getPrintParams();
pp.reversePages=true;
this.print(pp);

If you are going to do this there is no need to for a code to uncheck the reverse pages box because this code didn't change the default settings. It only changed it for this print job. If you try to control it by skipping the last line of code, it won't do anything (run the first 2 lines, then click the Adobe printer icon and you will see the original settings).

Another solution is to write a code for a will print action that reverses the page order and run the same code in the did print action (to restore the page order after the document prints) but this will not work with Reader because you can't manipulate the page order like this in Reader.


David Dagley   


Please specify a reason: