the script below will disable the auto rotate printing option in PDF and print it directly to your default printer

var prn_param = this.getPrintParams();
prn_param.interactive = prn_param.constants.interactionLevel.silent;
var flag_val = prn_param.constants.flagValues;
prn_param.flags |= flag_val.setPageSize;
prn_param.flags |= (flag_val.suppressCenter | flag_val.suppressRotate);
this.print(prn_param);