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


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?

5/17/2019 1:45:00 PM

It appears to be possible but would require scripting.


  • 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:;

  • 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.


12/2/2014 8:25:00 PM