Skip to main content
Known Participant
May 31, 2025
Answered

How Best to Change an Image in a PDF Document When Cursor's Over Image

  • May 31, 2025
  • 1 reply
  • 642 views

Hello... 

 

I want to put a portfolio document up into Google Docs, and I'd like to make one of the images be able to change to show a variant of it when a prospective employer's cursor is over it. Is there a way to do this, preferable without spending money since I am, as they say, between jobs?

 

I construct my doc in Pages, and then export it to a PDF, which is then uploaded to Google Docs. 

 

Thank you much!

 

Keith

Correct answer try67

You can use fields to do it. A button field can hold an image as its icon and another button field can be set to show/hide that image button when you enter or exit it.

The basic code to do it is this, assuming the second button is named "Image1":

(On Mouse Enter)

this.getField("Image1").display = display.visible;

(On Mouse Exit)

this.getField("Image1").display = display.hidden;

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
June 1, 2025

You can use fields to do it. A button field can hold an image as its icon and another button field can be set to show/hide that image button when you enter or exit it.

The basic code to do it is this, assuming the second button is named "Image1":

(On Mouse Enter)

this.getField("Image1").display = display.visible;

(On Mouse Exit)

this.getField("Image1").display = display.hidden;

Known Participant
June 2, 2025

Just saw this. I received no notice from Adobe.

 

Thank you for that. I'll give it a shot.