• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
2

How to set printer back to default without reopen Adobe Reader

Explorer ,
Jun 05, 2023 Jun 05, 2023

Copy link to clipboard

Copied

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 (any printer) but not works. 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;

 

TOPICS
PDF forms

Views

324

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 06, 2023 Jun 06, 2023

Copy link to clipboard

Copied

[MOVED TO THE ACROBAT READER DISCUSSIONS]

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 18, 2023 Jun 18, 2023

Copy link to clipboard

Copied

LATEST

No solution?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines