Skip to main content
April 7, 2016
Question

How do I add an import image button field to a fillable form?

  • April 7, 2016
  • 1 reply
  • 357 views

How do I add an import image button field to a fillable form?

This topic has been closed for replies.

1 reply

Inspiring
April 7, 2016

If it has to work with Reader, there is only a method to import from an existing PDF, but it's often easy to convert an image to PDF these days. Acrobat allows you to import from anything it knows how to convert to PDF, which includes the common image formats. You can use the following JavaScript in the Mouse Up event of a button that configured with a layout other than "Label only", usually "Icon only":

// Mouse Up script for a button

event.target.buttonImportIcon();

This is the bare essential, but you can expand on this so that the return value is checked for errors and provide a means to reset the button icon. Post again if you have any questions.