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

Script for printing pages, all pages are printing in different sizes, not fitted

Explorer ,
Jan 08, 2019 Jan 08, 2019

Copy link to clipboard

Copied

Good evening, I made a script to print specific pages in a range from my document, except that the page information being printed are all different dimensions on the paper.

Here is my script:

print.this(false, 0, 6);

print.this(false, 7, 23);

Is there a sepcific printer setting I must use, to make the pages print out correctly?  Any help would be wonderful, I intended the pages to print out, "fitted."

Thank you!

TOPICS
Acrobat SDK and JavaScript , Windows

Views

149

Likes

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 08, 2019 Jan 08, 2019

You can specify the bShrinkToFit parameter as true, like this:

this.print({bUI: false, nStart: 0, nEnd: 6, bShrinkToFit: true});

Likes

Translate

Translate
Community Expert ,
Jan 08, 2019 Jan 08, 2019

Copy link to clipboard

Copied

You can specify the bShrinkToFit parameter as true, like this:

this.print({bUI: false, nStart: 0, nEnd: 6, bShrinkToFit: true});

Likes

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 ,
Jan 09, 2019 Jan 09, 2019

Copy link to clipboard

Copied

LATEST

All the pages are now printing in the correct sizes, thank you!

Likes

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