I have an 88 page form that I would like to add the JS Doc method deletePages() on the Submit button to rid the form of unnecessary pages before submitting.
The parameters of the deletePages are nStart and nEnd. For example:
this.deletePages({nStart: 1, nEnd: 3});
The pages that I want to delete are mixed across the document. Is there a proper way to write this script so that it will delete pages within other pages, not just in a row of pages?
I have thought of just using multiple instances of deletePages(), one after the other, but am curious if anyone here knows that if I did do that, would I have to use the exact base 0 page numbers from the beginning of the script, or would I have to adjust the base 0 page numbers for each instance of deletePages that I use, even though they will be ran one after the other?
L Nail
Yes. The base 0 page numbers change with each instance of deletePages() used. It took nine instances of deletePages() to work, but it works, and that's all that matters.
YES! I can do that.