Skip to main content
Participant
May 18, 2016
Question

Create a "insert file" button

  • May 18, 2016
  • 1 reply
  • 399 views

Hey All,

I'm chasing the java-script  to create a button that will insert a PDF (like a Map) into the existing form as a new page ??

Using Adobe Acrobat Pro XI

Thanks

This topic has been closed for replies.

1 reply

Inspiring
May 18, 2016

If this needs to work with Reader, you can insert a page by spawning a template (template.spawn method) that includes a button that's used to display the contents of a page that you can import from an existing PDF (field.buttonImportIcon method). If it just needs to work with Acrobat, you can simply use the doc.insertPages JavaScript method.

Inspiring
May 18, 2016

Also, the Reader approach using a template can only work with Reader 11 and DC, not earlier versions.

Participant
May 18, 2016

Thanks George

Ok that sound simple enough, but i'm amateur when it comes to Java-script so where would i find an example of this ?? i've searched high and low... maybe i'm looking in the right direction ??