Knowledgebase

Home : Create a PDF form which will allow users to upload an image in Adobe Reader.
Q10169 - HOWTO: Create a PDF form which will allow users to upload an image in Adobe Reader.

The information in this article applies to:

  • Version 5.x of Nitro PDF Professional.

Question

How can I create a PDF form which will allow people using only the free Adobe Reader to insert an image?

Answer

Push Button fields have options to either display a text label of icon as an appearance. Users with Nitro Pro or Adobe Acrobat have the form design tools to change these properties, however users with Adobe Reader do not.

Below is an example on how to create a button in Nitro Pro with an icon appearance.



However, to allow users with the free Adobe Reader achieve the same result, all you need is a single Text Field, Form Button and a little JavaScript. On the Form Button's Mouse Up event (see the Actions tab in the field's Properties dialog), a JavaScript will run prompting the user to select an image from their hard drive.

Once a file is selected, the path to the file is stored in the Text Field, the button retrieves the image from this path and displays it inside the Form Button.


Download the example PDF document below to get a better idea of what this document may look like. The JavaScript which prompts users to upload file can be found behind the button.

Related articles
No Related Articles Available.

Article attachments
importImageToButton.pdf

Related external links
No Related Links Available.
Help us improve this article
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
 
Approved comments
No user comments available for this article.
Created on 7/17/2008.
Last Modified on 8/12/2009.
Last Modified by Shaun Arsana.
Skill Level: Intermediate.
Article has been viewed 1590 times.
Rated 8 out of 10 based on 5 votes.
Print Article
Email Article