Skip to main content
Flipside32
Participating Frequently
August 14, 2019
Question

Javascript to insert another pdf file

  • August 14, 2019
  • 1 reply
  • 667 views

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!

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
August 14, 2019

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.