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

Resize a selected pages in InDesign using javascript

Participant ,
Apr 23, 2024 Apr 23, 2024

Copy link to clipboard

Copied

Hi Team, 

Please let me know how to change a particular page size in the document using javascript.

 

Thanks

TOPICS
Scripting

Views

60

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 , Apr 23, 2024 Apr 23, 2024

Hi @Balaji Murugesan , Use the resize() method. Here‘s an example that resizes the active page:

 

var w = 500
var h = 950
var p = app.activeWindow.activePage;
p.resize (CoordinateSpaces.INNER_COORDINATES,AnchorPoint.CENTER_ANCHOR,ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH,[w,h]);

Votes

Translate

Translate
Community Expert ,
Apr 23, 2024 Apr 23, 2024

Copy link to clipboard

Copied

LATEST

Hi @Balaji Murugesan , Use the resize() method. Here‘s an example that resizes the active page:

 

var w = 500
var h = 950
var p = app.activeWindow.activePage;
p.resize (CoordinateSpaces.INNER_COORDINATES,AnchorPoint.CENTER_ANCHOR,ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH,[w,h]);

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