Copy link to clipboard
Copied
Hi Team,
Please let me know how to change a particular page size in the document using javascript.
Thanks
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]);
Copy link to clipboard
Copied
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]);