ehigginbotham Posted September 22, 2010 Share Posted September 22, 2010 I need a rule that will count the pages in a file, and return the page number if the page is an odd numbered, and a different rule in another box on the other side of the page that returns the page number if it is even. The file has muliple pdf's of multiple page length that are swappin in and out, so there is not a way to control if it should be an odd or even page through the overflow, as they do not want blank pages in the book. if (pagenumber % 2== 0) return pageNumber; else return ""; something like this is my idea, but i don't know how to define the pagenumber variable. any help is greatly appreciated. thanks Link to comment Share on other sites More sharing options...
Dan Korn Posted September 22, 2010 Share Posted September 22, 2010 var pagenumber = CreateResource("YourFileName.pdf").countPages; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.