How to set printer back to default without reopen Adobe Reader? | Community
Skip to main content
June 8, 2023
Solved

How to set printer back to default without reopen Adobe Reader?

  • June 8, 2023
  • 1 reply
  • 677 views

Hello community. I am trying to print with the code below my PDF form using "Microsoft Print to PDF" and after printing (saving as a flattened image file) it should set the printer to default (some printer) without reopening Adobe Reader, but not working. Can anyone help me?

 

Thanks in advance

 

var defaultPrinterName = this.getPrintParams().printerName; var pp = this.getPrintParams(); pp.printerName = "Microsoft Print to PDF"; pp.NumCopies = 1; pp.DuplexType = pp.constants.duplexTypes.Simplex; pp.pageHandling = pp.constants.handling.fit; pp.printRange = null; pp.interactive = pp.constants.interactionLevel.silent; this.print({ bUI: false, bSilent: true, bShrinkToFit: true, printParams: pp }); pp.printerName = defaultPrinterName;

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Saravanan_Dharmaraj

@turan_elkhan I feel you have posted in wrong community group. Could you please post it the below forum , you might get an answer

 

https://community.adobe.com/t5/acrobat/ct-p/ct-acrobat?page=1&sort=latest_replies&filter=all&lang=all&tabid=discussions 

 

1 reply

Saravanan_Dharmaraj
Community Advisor
Saravanan_DharmarajCommunity AdvisorAccepted solution
Community Advisor
June 9, 2023

@turan_elkhan I feel you have posted in wrong community group. Could you please post it the below forum , you might get an answer

 

https://community.adobe.com/t5/acrobat/ct-p/ct-acrobat?page=1&sort=latest_replies&filter=all&lang=all&tabid=discussions 

 

June 9, 2023

Thank you. I'll do it.