Utility
Some page tools for InDesign
npm install @extendscript/ind.util.pages
#include 'node_modules/@extendscript/ind.util.pages/pages.js'
Load the module by creating a reference.
var page = Sky.getUtil("pages")
Returns an info object like the one outlined below. The units parameter is optional and defaults to points:
{
"units" : "mm",
"kind" : "Page",
"bounds" : [0,0,100,100],
"width" : 100,
"height" : 100,
"bleedBounds" : [-5,-5,105,105],
"slugsBounds" : [-15,-15,115,115]
}
Returns an array of pages found that matches labelStr
.
We can test the code against a range of targets:
npm run test myTarget
We keep a log of test results
Read the docs