@extendscript/ind.util.pageitems

2.0.1 • Public • Published

pageitems

version

InDesign Utility

Utilities that create or target page items in InDesign.

Install

npm install @extendscript/ind.util.pageitems

Include

#include 'node_modules/@extendscript/ind.util.pageitems/pageitems.js'

Use

var PageItems = Sky.getUtil("pageitems");

Get Parent

Returns the requested Parent or Error:

  • getParentPage ( PageItem )
  • getParentSpread ( PageItem )
  • getParentDoc ( PageItem )

Add 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 )

Update Bounds

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 )

Test

We can test the code against a range of targets:

npm run test myTarget

We keep a log of test results

More info

Read the docs

Package Sidebar

Install

npm i @extendscript/ind.util.pageitems

Weekly Downloads

2

Version

2.0.1

License

MIT

Unpacked Size

20 kB

Total Files

10

Last publish

Collaborators

  • extendscripter
  • fabian.moron.zirfas
  • fabianmoronzirfas
  • vogelino