Button Javascript Save Page to separate PDF
Hi,
I'm trying to do something very specific that seems to have been asked many times, but much information appears to be out of date in today's world of security precautions.
I am trying to create a button on the last page of a PDF document that will allow a user, using Adobe Reader, to save the last page of the document to a separate PDF file preferably under the same folder as the current PDF that it was "extracted" from.
In running the this.extractPages() function, I do not believe that a user has the ability to actually execute this function without going through some major configuration hoops to their Adobe Reader.
It would be ideal to have the single page PDF open in a new tab and bring up the dialogue box for the Adobe Reader user to save to a location where they want it to be, and that may sound like it’s a bit more "security-minded" in that the script therefore is not saving the document itself.
Using:
this.extractPages({nStart:5, nEnd:5, CPath:'profile.pdf'});
this.extractPages(5, 5, 'profile.pdf'});
Seems to be a method that is no longer allowed by a normal user and it seems to be more complex of how to achieve the desired outcome that I want for the users.
Any thoughts?
