We are using Adobe Acrobat 7.0.9 Professional on Windows XP. We have a form with built in templates that can be spawned using the following format:
this.spawnFromTemplate(“CTemp”);
this.pageNum++;
We have put this code under a button so that the users can add template pages as needed. We have also put a button to delete pages and keep the page numbering intact. However, our problem comes when users delete pages from the Pages Tab instead of using the button. When pages from the middle of the document are deleted under pages tab instead of the button, the numbering will be off. (ie. All text fields on two pages are the same so data is duplicated across two pages) When more pages are added and we end up with two pages with all the fields having the same name. Is there anyway to avoid this? Or how can we reset the page number after deletion?
As to preventing users from using the Pages button to delete things... why not simply hide the Navigation Pane altogether? Unless you need the thumbnail view for navigation, try simply turning off the Window Controls in that PDF.
Duff Johnson
w - http://www.duff-johnson.com
t - http://www.twitter.com/duffjohnson