insert page includes document javascripts - what about document actions ?
I have used insert page from a document containing document level javascripts.
This loads the document level javascripts into a new PDF which is a great way for users I support to add special functionality into their documents.
The latest example is a JS that adds a date/time stamp as a button to the footer of each page. The requirement is however that this be triggered on the WillPrint document action. Unfortunately document actions do not seem to be respected in the new PDF from the imported PDF.
I have tried adding this as a document level JS without the function wrapper but it does not set the trigger in the document
this.setAction({cTrigger: "WillPrint", cScript: addDateStamp});
Any suggestions that will allow for adding the functionality to the PDF without the user having to manually edit or add document actions...
Thanks
Ben
