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

Print First Page for Multiple PDF's

New Here ,
Jan 16, 2018 Jan 16, 2018

Copy link to clipboard

Copied

Dears,

I am using the below script (which I found online) to print the first page of multiple PDF's. It is working great, but the only thing missing is that I need to print in grayscale. Can anyone help? Below is the script:

/* Print 1st Page */

/* This sequence prints the first page of

each document selected to the default printer.

*/

this.print

({

bUI: false,

nStart: 0,

bSilent: true,

bShrinkToFit: true

});

TOPICS
Acrobat SDK and JavaScript , Windows

Views

1.2K

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

correct answers 1 Correct answer

Community Expert , Jan 16, 2018 Jan 16, 2018

You can try using the PrintParams object and specify a B&W color profile, or you can use the colorConvertPage method and change the actual page before printing it.

Votes

Translate

Translate
Community Expert ,
Jan 16, 2018 Jan 16, 2018

Copy link to clipboard

Copied

You can try using the PrintParams object and specify a B&W color profile, or you can use the colorConvertPage method and change the actual page before printing it.

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
New Here ,
Jan 16, 2018 Jan 16, 2018

Copy link to clipboard

Copied

LATEST

Thanks try67​ for your help!

However, I am not being able to find any example or sample code online on how to use color profile or colorConvertPage. Are you able to provide an example? This would be much appreciated!

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