Javascript to insert another pdf file
Copy link to clipboard
Copied
I'm still a little new to PDF javascripting. Is there a javascript to insert another pdf file into an existing PDF file when a user chooses a drop down menu item?
I have a template with a drop down menu, and when a user clicks on that menu item I would love for the corresponding PDF be inserted into that template. Would that be possible or would that be too difficult? I am using adobe acrobat pro DC.
Thank you in advance!
Copy link to clipboard
Copied
It's possible using the insertPages command. However, this method can only be used from a so-called "privileged context" which basically means either a script installed on the local machine or from within a certified file. Of course, it won't work in Reader. Only in Acrobat.

