Skip to main content
hurix
Inspiring
March 26, 2014
Question

automate process for even pages

  • March 26, 2014
  • 1 reply
  • 778 views

Hi,

I need to automate the process for pages should complete "even" or signature page count.

Eg: 2, 4, 6, 8, 10, 12, etc...

or

8, 16, 32, 64, etc....

Kindly help on this issue.

Hurix

This topic has been closed for replies.

1 reply

Jump_Over
Legend
March 26, 2014

Hi,

Main question is how complex is your automation process, but basically you should check page.documentOffset property, i.e.:

if (!page.documentOffset%2)

     // do automation

Jarek

hurix
hurixAuthor
Inspiring
March 26, 2014

function main(){

var pages = app.documents[0].pages.everyItem().getelements()'

for(var i = pages.length-1; i>=0;i--){

if(pages.pageItem.ength>0){

var items = pages.pagesItems.everyItem().getElements();

Know what do i do.

Hurix

hurix
hurixAuthor
Inspiring
March 28, 2014

i got it!

thanks