Reply To: Adding Pages?

#93110

It seems, that Malcolm has no interest anymore and like to do his job by hand. Since this: “So I need to insert a page after each, with the new copy?” is not clear to me, even if this means insert text (which kind of text? by hand? automatically?)

Anyway: If someone wants to add pages between pages:

(function () {
var curDoc = app.activeDocument,
  allPages = curDoc.pages,
  nPages = allPages.length,
  curPage,
  i,p;

for (i = nPages-1; i >= 0; i--) {
  curPage = allPages[i];
  p = curDoc.pages.add();
  p.move(LocationOptions.AFTER, curPage);
}
}) ();

This article was last modified on March 24, 2017

Comments (0)

Loading comments...