2

Is it possible to create an interactive PDF where you can click a scaled down embedded image and it opens it up large in a preview like window hovering in front of the open PDF? Sort of like the PDF is extending outwards and then a second click will close the window back into the PDF. I am thinking along the lines of quicklook in OS X. I don't mean just zooming the document into the clicked picture and then zooming back out again. Maybe javascript is necessary? I know websites have this sort of behavior all the time.

**The following question is similar but specifically not what I want. That solution is just zooming within the document. How to enlarge a picture on click

  • 2
    looks a lot like: How to enlarge a picture on click? – cmhughes Feb 3 '14 at 3:36
  • 2
    Why do you want it to appear in a new window? The solution linked in @cmhughes comment has the advantage that the thumbnail is always magnified to the maximum size that just fits into the viewer window. – AlexG Feb 3 '14 at 7:45
  • 1
    @AlexG: To comment it here: How about putting both versions together and releasing this as package on CTAN? Would be useful IMHO. (Longer answers perhaps better in chat.) – Speravir Feb 3 '14 at 17:32
  • 1
    @AlexG: Addition to my last one: For acrotex there is the licensing issue, though, why it not is included in TeX Live (but MiKTeX is not that strict). Also all this OCG stuff does not work with every PDF Reader. – Speravir Feb 3 '14 at 22:01
  • 1
    @StephanLehmke: So if you don't want to use the same content for thumbnail and enlarged views, you could immediately use the \tooltip macro, as in \tooltip{\includegraphics{downscaledimage}}{\includegraphics{highresimage}}. – AlexG Feb 5 '14 at 10:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.