Javascript to insert another pdf file

Community Beginner ,
Aug 14, 2019 Aug 14, 2019

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!

TOPICS
Acrobat SDK and JavaScript, Windows

Views

71

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Aug 14, 2019 Aug 14, 2019

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines