Skip to main content
Known Participant
January 20, 2020
Question

Creating a fillable form where the recipient can paste a gif or small image Along with type

  • January 20, 2020
  • 2 replies
  • 3743 views

I am hoping to find a way for my customers to paste images of some form into the text fields (or another type of field if required). As an example. A field placed in a date box on a calendar. The recipient could type Dad’s Birthday and grab a supplied image of a birthday cake and paste it. My fillable forms presently work great but only for type. 

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
January 20, 2020

This is possible, use a button field as the "image field" and add this code to the MouseUp event

 

event.target.buttonImportIcon();

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Known Participant
January 21, 2020

So I'm at this step and want to cope and paste code but , are unable to paste here or if I click the Add button. Is this the wrong button? 

try67
Community Expert
Community Expert
January 21, 2020

Change the Action to "Run a JavaScript" and then press Add, then paste the code.

 

However, this will not allow your users to paste images directly into the field. They will have to save them first to the computer as an image file, and then they'll be able to select them when clicking the button.

John T Smith
Community Expert
Community Expert
January 20, 2020

Please post the name of the Adobe program you use so a Moderator may move this message to that forum

Known Participant
January 20, 2020

Adobe Acrobat 9 Pro