Delete pages in Adobe Acrobat READER
I recently created a PDF file that contains a button for deleting a page:
this.deletePages(this.pageNum, this.pageNum)This all worked perfectly in my Adobe Acrobat environment but it didn't work for anyone who was using Adobe Reader. I soon found out through the forums here (thanks try67) that the deletePages function only works in Adobe Acrobat OR for spawned pages.
So my thought process is now, that I simply create a PDF with all fillable fields and then create a template for each page in the PDF:
for (var i = 1; i <= this.numPages; i++)
this.createTemplate({cName: i, nPage: i});Afterwards, I spawn all my templates:
var a = this.templates;
for (i = 0; i < a.length; i++)
a[i].spawn(this.numPages, false, false);
Now I'd have x amount of original pages and x amount of spawned/duplicated pages. I then delete the original pages in Acrobat Pro and save the document with only the spawned pages. Like this, the spawned pages should be deletable in Adobe Reader, but it looks like they are not.
So, my questions are:
- Is this the correct procedure or is there maybe an easier one? If it is the correct procedure, what am I doing wrong?
- Is there a way to install Adobe Acrobat Reader in parallel to Acrobat Pro? Because it is super annoying to have to get 2 devices and install one software on the first device and the other software on the second device and then send the documents back and forth between the devices only to test the functionality in Adobe Acrobat Reader. This can't be the only solution, right? I mean, I'm a paying customer for Adobe Acrobat and yet I have no chance of testing my document for the end user.
