These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Making an image a Combo box choice or Deletable

prander
Registered: Nov 6 2008
Posts: 44

I have a form letter-type document that the clerk prepares as signed from 1 of 2 people: the manager or the assistant manager. In the past, I've created 2 separate versions of the multi-page form for each of the 'signers.' Now, because there are multiple versions of the form (a version with 2 different versions of the 3rd page), I want to create those as 2 different versions rather than 2 sets with 2 versions giving the clerk FOUR different forms to work with (and actually it's 4 different versions that could come for the 2 signers = 8!!) Until I learn how to use LiveCycle, this is the way I have to do it.

My questions is, if I embedded both signatures (JPGs), is there a way to write script for the clerk to choose to hide the one that she doesn't want to use OR can I make the jpg signature files a combo box choice?

The form doesn't have to be secured because it's used in-house by 1 or 2 clerks exclusively. Ideally, the clerks need an enabled pdf so that they can save the 9-11 page document for future reference or when they recertify the employees.

TIA,
Page

My Product Information:
Acrobat Pro 9.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Why yes, you can do this. Actually you could also do it with a Regular AcroForm. In both forms technologies you can hide and show form fields. You could add check boxes, or any other UI element that is convenient for your form, and with a little JavaSript, uses these elements to hide or show the signature images.

For LiveCycle, take a look at this tutorial:
https://admin.adobe.acrobat.com/_a200985228/p87746471/

For doing the same thing on an AcroForm you can place the signature images in Button Fields. To hide/show see this article:
http://www.acrobatusers.com/tutorials/2006/show_hide_fields

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

prander
Registered: Nov 6 2008
Posts: 44
I understand the show/hide concept, I guess my concern is that it's an image file that's embedded/inserted in the document (original in the converted Word document, but I can re-insert in Acro as I've done before). Does such an embedded image have a name or reference point that I can use when writing script or refering to it?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Don't embed the images in the Word file. Keep them as separate JPEG files. Then import them into form image elements in LiveCycle Designer, or into Button fields in an AcroForm. Either way, the image is now in a form field element and it's the name of this element you use to hide or show the signature.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script