Hi Experts,
I created a name badge template for a company using Illustrator. I saved the image as a PDF and created form fields on it for employee name, position, etc., with Acrobat Professional 8. It works great and the company's HR person can add the required info using her standard Acrobat Reader program. BUT, there is also a place on the name badge that a picture of the employee is supposed to go. I am hoping to find a way to create a form field on the PDF that I can drag a small JPEG of the employee's head into. Right now the HR lady is having to cut out a picture of the employee and glue it to the printed-out name badge before laminating it. It would be awesome if I could create the PDF so that the HR lady could drag employee pictures right into a form field on the PDF so that the picture could be printed off with the rest of the name tag and form fields containing the employee's name, position, etc. But I can't find a form field that will accept an image file. Can you help???
Thanks!
Bryan
Here's the method:
Add a Button Field to the form.
In the Option tab in the Properties dialog for the button set it to IconOnly
Add this code the to button up event -
this.importIcon("MyIcon");
var ic = this.getIcon("MyIcon");
event.target.buttonSetIcon(ic);
Another method is to use the "image" control in a LiveCycle Form. But you'll need the Window's version of Acrobat to make one of these kinds of forms. Once it's made it should work in Reader on the Mac.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script