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

Newbie needs popup up picture help

janee anderson
Registered: Feb 17 2009
Posts: 10
Answered

I have had acrobat for some years now and like it very much. I like to make pedigrees for Arabian horses, similar to allbreeds.com. I want to put a very small picture by each name and when I click on it, I want the larger picture to pop up. Not on a different page (which I can do with bookmarks) but pop up in as big a window as necessary to hold the picture. Then I want to use the escape key to make the window close. If I can, then I also want to put some text in (birth date, strain, etc.)

I wish someone would make an add on for javascript - what do you want to do. I want to make a popup. How do you want to close it. With the escape key. That would be sooo easy, but since we don't have that, can anyone tell me how to do what I want?
Thanks!
Jane

My Product Information:
Acrobat Pro 9.0, Windows
gracecheng
Registered: Feb 18 2009
Posts: 5
Hi do you the know code behind for convert .aspx web page to PDF using acrobat reader.
janee anderson
Registered: Feb 17 2009
Posts: 10
Uh, I am a newbie to this forum, and to javascript. But I am familiar with Acrobat. I don't use the reader as I have the writer. I made a pedigree by hand then printed to the pdf printer to make the pdf document. I copy and paste the small picture besides each name. And that's all I can do, don't know much coding at all. Maybe a little html. Now I want to use javascript to make a new window popup to hold the larger picture and close it with the escape key.
Jane
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
You need to create 2 button fields. A smaller one for the small picture and a larger one for the large picture. Both buttons can have Icon and Text or Icon only. The smaller button will be 'visible' by default and the larger will be 'hidden'. Each button will have JavaScript code, the smaller button's code will unhide the larger button and hide itself and the larger button will hide itself.
//small button to show large button hide self- mouse up actionthis.getField("LargeButtonField").display = display.visible;this.getField(event.target.name).display = display.hidden;

//large button to hide itself show small button - mouse up actionthis.getField("SmallButtonField").display = display.visible;this.getField(event.target.name).display = display.hidden;

You will need to edit the field name of the button field to show.

You can place the buttons as you desire, including one on top of the other

The above code is for Acrobat Forms and not LiveCycle Designer forms.

George Kaiser

janee anderson
Registered: Feb 17 2009
Posts: 10
Thank you so much for your help! But after thinking about this, I'm not so sure it can be done. This is a url to something very similar that I want to do:

http://www.geocities.com/aolsen_2000/PedigreeJamaal.htm

Now imagine this was printed to pdf. Just below the opening picture is the initial pedigree. Click on the picture of *Shimeon Shai and the html will go to the larger same picture. I can do this easily already using bookmarks.

But if I wanted this larger picture to open with javascript - NOT full screen - with the pedigree still underneath the opened larger picture can this be done? Both pictures large and small are embedded on pdf pages. But do I have to have the larger picture in its own jpg file on my computer? I prefer to have everything in the Acrobat pdf.

If I still have to have the larger embedded picture open full screen, then can I still do it with javascript? I prefer to be able to exit that page using the escape key.

Like I say, I am a newbie. I understand that I have to give a name to each picture, the small and the large. Then, how do I identify where to go as both are embedded in the pdf?
Janee
janee anderson
Registered: Feb 17 2009
Posts: 10
Anyone?
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
It can certainly be done, and gkaiseril demonstrated one way to do it using JavaScript code and buttons to display the images. If you've tried it and found it inadequate, you'll have to provide more information about what you want.

George
janee anderson
Registered: Feb 17 2009
Posts: 10
I'm afraid I am the type of person that says "point me." You literally have to draw pictures. The coding that was kindly given by gkaiseril I couldn't quite understand.

This is what I want to do:

Acrobat Pro 9 can make a flash movie open in a new window. I want to this exact same thing but with a still picture. I want either a rollover to a new window or a click to a new window. When the picture pops up in the new window I want it to close using the escape key.

Thanks for your help,
Janee