Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

I want an image to appear above/next to text when I hover over it

Guest
Jun 19, 2016 Jun 19, 2016

Hey,

I am creating PDFs and I want to know if it is possible for me to edit text so that when I hover over the text a small/medium image can display next to the text.

Example:

I have a paragraph where there is the phrase "Ace of Spades". This phrase is highlighted in blue and when I hover over it a small image box is displayed with an image of a Ace of Spades.

Context: I have many specific things I want to mention in my PDF that have a desirable need to be seen when hovered over.

Thank you,

Ziggurat

TOPICS
Acrobat SDK and JavaScript
297
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 20, 2016 Jun 20, 2016

This can be achieved using a script. You would basically need two buttons: One to hold the image and to show/hide the other button when you hover above it or click it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 20, 2016 Jun 20, 2016
LATEST

Take a look at this tutorial, which shows how to display "floating text": Floating Text on PDF Documents - KHKonsulting LLC

For an image, you would use the second method (show a hidden text field), but instead of the text field, you will show a hidden button that uses your image as it's button face. To do that, select "icon only" for the button layout. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines