This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ProcessDocument = app.trustedFunction(function () { | |
app.beginPriv(); | |
var newDoc = app.newDoc(); | |
var p = app.response("Start with page(default 0 - process all pages)?", "Query", "0"); | |
var startFrom = parseInt(p) || 0; | |
var i = 0; | |
while (i < this.numPages) { | |
newDoc.insertPages({ | |
nPage: newDoc.numPages - 1, |