Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tooltips in PDFs: are they possible?

I'm using the tcpdf PHP class for creating PDFs. Is there any solution to add tooltips to links?

like image 691
marek Avatar asked Aug 01 '10 12:08

marek


People also ask

What is a tooltip in Adobe Acrobat?

The Tooltip also displays text that users may find helpful in filling in the form field. Tooltips appear when the pointer hovers briefly over the form field.

How do I turn off tooltips in PDF?

1. Select Tools ->Options. 2. Select Workspace and under Page View Options, select or deselect Display Object Name Tooltips While Pointing.


1 Answers

Links itself cannot have tooltips. Viewers always show the URL.

But TCPDF can add "Annotations", which is the closest you can get to tooltips (but have to be assigned to a rectangle area instead of to text/paragraphs). http://www.tecnick.com/pagefiles/tcpdf/doc/com-tecnick-tcpdf/TCPDF.html#methodAnnotation

You'll have to refer to the PDF specification. Section 8.4 and 8.4.5, and you are looking for "Popup". http://www.adobe.com/devnet/pdf/pdfs/PDFReference16.pdf

like image 171
mario Avatar answered Oct 16 '22 14:10

mario