didn't get Last page
In my document has footnotes and texts. While doing the auto pagination I tired to align the last page via script
But the last page has only five lines. When I try to get he last page the script return the previous page. (Issue only in script running time)
I tried like below even though its not returning the correct page.
doc.preflightOptions.preflightOff = false;
doc.activeProcess.waitForProcess(120);
doc.preflightOptions.preflightOff = true;
var pages=doc.pages;
var lastpage=pages.lastItem();
How do I resolve the issue.
