Jump to content
  • 0
Sara M

Insert Picture into Form

Question

Sara M

I'm building a form and the client wants to be able to insert a picture into the PDF from a file.  I thought perhaps the button tool would do this, but I can't figure out how to make it work!  Any ideas?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
Steven Zakulec

It looks like the answer involves some Javascript.

It can be done using a button.

Make your button or go to an existing button.

Go to properties for the button.

Make sure under Options you are set to either Icon only or one of the other options with Icon.  Otherwise you won't see whatever picture you choose.

Under Actions, you want the Trigger to be Mouse Up, and the action to be Run a Javascript.

Paste this into the window that pops up: event.target.buttonImportIcon();

Click OK, then click Close.

Go to the Home tab and click on the hand, then click on your button.

A file dialogue will pop up- the import window defaults to showing PDFs only, but you can change that by clicking where it says PDF Files (*.pdf) and choosing a different option from the drop down.

Double click on your file and you'll see the file on the button.

If this isn't what you're looking for exactly, you'll probably want to search online for it, and use the Javascript suggested.

Good luck!

 

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site, you agree to our Terms of Use.