Is it possible to allow a user to attach a file in a .pdf form?


Question

I created an interactive .pdf in Indesign, but I want to ad an option to let the user attach a file that he or she has on his computer. Is that possible?

1
2
5/17/2019 1:45:00 PM

It appears to be possible but would require scripting.

Steps:

  • Open up the Content Panel via Tools > Content Panel
  • Using the 'Add a button' tool draw a button to the size the image field needs to be
  • Double click the button to enter into the button's properties
  • Go to the Actions tab
  • Next to Select Action choose 'Run a JavaScript'
  • Click Add
  • Copy & Paste the following JavaScript in the window:

    event.target.buttonImportIcon();

  • OK

  • Go to the Options tab
  • Under Layout choose 'Icon Only'
  • Investigate any other options you need then..
  • Close

Test using the Selection Tool (black arrow tool). Note that when browsing for the image you are not restructed to PDF's as you can change the file type in the lower right to say JPEG or PNG etc.

Source: https://answers.acrobatusers.com/adding-image-field-form-q41825.aspx#postComments41835

4
12/2/2014 8:25:00 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
^