Forum Feature requests

HTML <span> and <a> "title" attribute to PDF Tooltips

Donald.Chapin
Hello Michael,

I have a potential client who needs to have HTML <span> and <a> "title" attribute text displayed as mouse-over tooltips in a PDF file converted from HTML pages, as soon as I can provide it.

You will find a typical sample HTML file that displays these tooltips in all five of the major Internet browsers at http://businesssemantics.com/SBVRTerminologicalDictionary(2011-04-30-2045).htm

You will notice in the source HTML document that on the nouns and some other colored words there is a mouse-over tooltip from the HTML <span> "title" attribute containing the definition. These tooltips are critical to our application (http://www.DesignsForManagement.com).

I also put a link on "advice of possibility" in the definition of the entry "advice of contingency" test the tooltips in that context.

I have done considerable research on the web about showing mouse-over tooltips in a PDF file. It seems that there are two techniques recommended:

1. Transparent buttons with no focus rectangle

- http://forums.planetpdf.com/popup-onmouseover_topic538_post1880.html?KW=pop%2Dup+mouseover#1880
- http://answers.acrobatusers.com/how-add-note-pops-hyperlink-mouseover-q54586.aspx
- http://objectmix.com/adobe-acrobat/215156-mouse-over-pop-up-contextual-text-pdf-possible.html
- http://forums.adobe.com/message/1168569

2. Text boxes

- http://www.ehow.com/how_5809380_create-mouseovers-adobe-acrobat.html
- http://blogs.up.ac.za/weblog/media/file/estelle/adobe%20files/02mouse_overs.pdf

How quickly could you provide this feature. I am already a DocRaptor customer.

Many Thanks,

Donald
Business Semantics Ltd
http://www.BusinessSemantics.com
mikeday
We can investigate this, but not for the next few months, as currently we are fully occupied with the development of other Prince features. I will add it to the roadmap.
jim_albright
Please check the first link again. It was non productive for me.
This is something that I would like also.

Jim Albright
Wycliffe Bible Translators

Donald.Chapin
Jim,

If you paste the full URL"http://businesssemantics.com/SBVRTerminologicalDictionary(2011-04-30-2045).htm" into your Browser, it works. This community software appears not to have marked up the URL correctly above.

Donald
Donald.Chapin
Michael,

You said "not for the next few months" above. It's now been 2 years and 4 months.

We are getting a lot of requests from the financial services community in the area of regulatory compliance for these tool tips in PDF files.

Could you please give a date when this feature can be available. We are still DocRaptor customers.

Thanks,

Donald
mikeday
Sorry for the delay, we are taking another look at PDF annotations and will see what we can do.
Chella
Hi,

We are expecting this feature. This status is DONE in your road map and when will you provide this in package?

Thanks & Regards,
Chella|TNQ Technologies
+91 98 84 504995

mikeday
It was only finished today! :D

We can provide you with a package to try. Which operating system are you using?
Chella
I am using ubuntu 12.04 LTS. Thank you!

Thanks & Regards,
Chella|TNQ Technologies
+91 98 84 504995

mikeday
There are latest builds available for Ubuntu 12.04 with support for tooltips. Packages for other operating systems will be made available later in the week.

You can enable tooltips with CSS like this:
*[title] { prince-tooltip: attr(title) }

This will make a tooltip for any element that has a title attribute, and use the attribute value as the tooltip text.

Please note that tooltips are not a standard PDF feature, and they may only work in Adobe Reader and Adobe Acrobat and may not be visible in other PDF viewers, such as web browsers. You may need to consider this if you will be sending generated PDF files to other people.
Chella
Hi,

It works!!!
Thank you so much. When we can we expect this for production release?

Thanks & Regards,
Chella|TNQ Technologies
+91 98 84 504995

mikeday
You can use it now with the latest builds, but we may make minor changes to the tooltips property in response to feedback as it is tested in a variety of different environments. It probably won't get included in the Prince 10 release series, as it is a fairly major change, not a minor bug fix.
Chella
If we go ahead for the licensed version will this alpha version be available?

Thanks & Regards,
Chella|TNQ Technologies
+91 98 84 504995

mikeday
Yes, any license you purchase now will work with latest builds.
Donald.Chapin
When will the latest build for Windows that includes support for tooltips be available?

Thanks,

Donald
mikeday
A Windows build is available now. :)
Chella
Hi Mike,

We need another build for ubuntu 14.04. Can we have?

Thanks & Regards,
Chella|TNQ Technologies
+91 98 84 504995

mikeday
Sure, it's available now. :)
Chella
Thank You!!! :)

Thanks & Regards,
Chella|TNQ Technologies
+91 98 84 504995

Donald.Chapin
Hi Mike,

I have found a bug in the Prince Title attribute tooltip generation capability. It works fine showing the tooltip of the Title attribute when there is no <a>...</a> involved.

However, when you combine the <span>...</span> containing the Title attribute with a hyperlink using <a>...</a> the tooltip of the Title attribute no longer shows. I've tried it both ways: a.) with the <span> inside the <a>; and b.) with the <a> within the <span>.

In MS Word (see attached sample) both the tooltip and the hyperlink show and work correctly when the <span> is within the hyperlink (<a>), but not the other way around.

The attached MS Word document was created by opening the attached HTML document in MS Word 2016 and saving as .DOCX.

The attached .PDF version generated from the HTML document by the Prince software does not display the tooltip of the Title attribute.

I have a client who is keen to get this tooltip working together with the hyperlink in PDF as it does in MS Word.

Thanks,

Donald
  1. MiFID II Example (Annex I, pages 42-43, (13) and (14) [2015-12-21].docx16.8 kB
  2. MiFID II Example (Annex I, pages 42-43, (13) and (14) [2015-12-21].html36.8 kB
  3. MiFID II Example (Annex I, pages 42-43, (13) and (14) [2015-12-21].pdf40.9 kB
mikeday
We will investigate this issue.
pjrm
I attach a simplified example document and corresponding pdf document (generated with the current development version of Prince) for you to test.

The reason that things didn't work in the MiFID example pdf attached above is simply that it was generated with Prince 10 rev 4, which doesn't include the tooltip feature. (Tooltips were added after Prince 10 was released.)
  1. title-vs-anchor.html0.8 kB
  2. title-vs-anchor.pdf12.7 kB
marke
Could you clarify which release includes this feature? I am using 10r7 via DocRaptor, and do not seem to be able to make a PDF with a tooltip.
jim_albright
This is useful for us too. Thanks for getting it to work.

Jim Albright
Wycliffe Bible Translators

mikeday
Prince 11 includes support for PDF tooltips.
jamespaden
Mike,

James here from DocRaptor. I'm working with Marke from earlier in the thread and he reported the following issue:

<style type="text/css">a[title] { prince-tooltip: attr(title) }</style> 
<a title="Tooltip">This works.</a> 
<a title="Tooltip" href="#" >This does not.</a>


Any advice or workarounds? Using the tooltip on a link seems like one of the primary use cases of this feature.

James


Try DocRaptor - PrinceXML web service and official PrinceXML partner

mikeday
We will investigate this issue.