InDesign Utility
Utilities that create or target page items in InDesign.
npm install @extendscript/ind.util.pageitems
#include 'node_modules/@extendscript/ind.util.pageitems/pageitems.js'
var PageItems = Sky.getUtil("pageitems");
Returns the requested Parent or Error:
- getParentPage (
PageItem) - getParentSpread (
PageItem) - getParentDoc (
PageItem)
Adds a new PageItem on SpreadPage:
- addTextFrame (
SpreadPage,Options) - addRect (
SpreadPage,Options)
Adds a new PageItem on SpreadPage using SpreadPage bounds:
- addRectToPage (
SpreadPage,Options) - addRectToBleed (
SpreadPage,Options)
Sets bounding box of pageItems to Reference bounds. (Any reference that has the geometricBounds property, uses parentPage if undefined):
- boundsToRef (
pageItems,Reference)
Updates bounding box of pageItems to SpreadPage bleed:
- boundsToBleed (
pageItems,SpreadPage)
We can test the code against a range of targets:
npm run test myTarget
We keep a log of test results
Read the docs