{"id":3352,"date":"2012-02-15T16:00:00","date_gmt":"2012-02-15T14:00:00","guid":{"rendered":"https:\/\/ingmarverheij.com\/?p=3352"},"modified":"2013-11-30T13:07:10","modified_gmt":"2013-11-30T12:07:10","slug":"tooltip-on-images-in-pdf","status":"publish","type":"post","link":"https:\/\/ingmarverheij.com\/en\/tooltip-on-images-in-pdf\/","title":{"rendered":"Images tooltip in PDF"},"content":{"rendered":"<p>Have you ever read a PDF document and noticed a tooltip when you hovered over an image? Did you notice that the information didn\u2019t looked like it\u2019s supposed to be there? It shouldn\u2019t, it\u2019s not pretty and it annoys me <img decoding=\"async\" class=\"wlEmoticon wlEmoticon-winkingsmile\" style=\"border-style: none;\" alt=\"Knipogende emoticon\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/wlEmoticon-winkingsmile.png\" \/><\/p>\n<p>Not only does this happen in my own documents, I\u2019ve see this in official documents of (major) companies.<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/XenDesktop-Hyper-V-Design-Guide_Final_v1.1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"\" alt=\"Citrix - XenDesktop Design Study\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/XenDesktop-Hyper-V-Design-Guide_Final_v1.1_thumb.png\" width=\"154\" height=\"127\" border=\"0\" \/><\/a><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/uem_smackdown-2012.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"\" alt=\"PQR - User Environment Management (UEM) Smackdown\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/uem_smackdown-2012_thumb.png\" width=\"154\" height=\"122\" border=\"0\" \/><\/a><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Hover-Dragged-from-Windows-Explorer.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Hover-Dragged-from-Windows-Explorer_thumb.png\" width=\"154\" height=\"41\" border=\"0\" \/><\/a><\/p>\n<p><!--more--><\/p>\n<h4>Alternative text<\/h4>\n<p>So why is there a <strong>tooltip<\/strong> when you <strong>hover<\/strong> over an image in a PDF document? Because the PDF document was a Microsoft <strong>Word<\/strong> document once and got <strong>exported<\/strong> to a PDF. But when you read the Microsoft Word document the tooltip is not visible, not even when you hover the image.<\/p>\n<p>The tooltip is displayed because an<strong> a<em>lternative<\/em> t<em>ext<\/em><\/strong> is set for the image. When you export the image to PDF the a<em>lternative text <\/em>is considered as important information about the image.<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Format-Picture.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: right; padding-top: 0px; border: 0px;\" title=\"\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Format-Picture_thumb.png\" width=\"79\" height=\"187\" align=\"right\" border=\"0\" \/><\/a>So where can you find his a<em>lternative text<\/em> of an image? Select an image, open the <strong>context menu <\/strong>(right-click) and select <strong>Format Picture<\/strong>. In the Format Picture dialog select <strong>Alt Text<\/strong>.<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Alt-Text-Dragged-from-Windows-Explorer.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Alt-Text-Dragged-from-Windows-Explorer_thumb.png\" width=\"179\" height=\"168\" border=\"0\" \/><\/a><\/p>\n<h4><\/h4>\n<h4>When and how is the Alt text filled<\/h4>\n<p>There are multiple methods of inserting an image into a Word document:<\/p>\n<ol>\n<li>Via the toolbar <strong>Insert &gt; Picture<\/strong><\/li>\n<li><strong>Dragging <\/strong>from Windows Explorer into Microsoft Word<\/li>\n<li><strong>Copying <\/strong>from Internet Explorer and <strong>pasting<\/strong> into Microsoft Word<\/li>\n<\/ol>\n<h5><\/h5>\n<h5>1. Via the toolbar Insert &gt; Picture<\/h5>\n<p>If you insert a picture via the toolbar via Insert &gt; Picture and then browse for the image (the cumbersome way) the alternative text is empty. If you export the document to PDF and hover above the image nothing is shown.<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Alt-Text-Inserted-via-Insert-Picture.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Alt-Text-Inserted-via-Insert-Picture_thumb.png\" width=\"179\" height=\"168\" border=\"0\" \/><\/a><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Hover-Inserted-via-Insert-Picture.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Hover-Inserted-via-Insert-Picture_thumb.png\" width=\"179\" height=\"47\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h5>2. Dragging from Windows Explorer into Microsoft Word<\/h5>\n<p>Now if you open a Windows Explorer and browse to a folder containing an image, pick it and drag it into you Microsoft Word document (the easiest and most used way?) the alternative test is filled with the location of the image. That\u2019s nice, now you know here you stored the image <img decoding=\"async\" class=\"wlEmoticon wlEmoticon-smile\" style=\"border-style: none;\" alt=\"Glimlach\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/wlEmoticon-smile.png\" \/><\/p>\n<p>But if you export the document to PDF and hover above the image, the rest of the world know this as well.<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Alt-Text-Dragged-from-Windows-Explorer1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Alt-Text-Dragged-from-Windows-Explorer_thumb1.png\" width=\"179\" height=\"168\" border=\"0\" \/><\/a><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Hover-Dragged-from-Windows-Explorer1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Hover-Dragged-from-Windows-Explorer_thumb1.png\" width=\"179\" height=\"47\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h5>3. Copying from Internet Explorer and pasting into Microsoft Word<\/h5>\n<p>If you see an image on a webpage and copy the image (via the context menu) and paste it into a Microsoft Word document, the alternative text is filled with the URL. Can be useful.<\/p>\n<p>But again, if you export the document to PDF and hover above the image a tooltip is shown. And for you\u2019re convenience, if the image contained a URL it is copied into your document as well!<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Alt-Text-Copied-from-Internet-Explorer.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Alt-Text-Copied-from-Internet-Explorer_thumb.png\" width=\"179\" height=\"168\" border=\"0\" \/><\/a><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Hover-Copied-from-Internet-Explorer.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Hover-Copied-from-Internet-Explorer_thumb.png\" width=\"179\" height=\"47\" border=\"0\" \/><\/a><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Hyperlink-Copied-from-Internet-Explorer.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/02\/Hyperlink-Copied-from-Internet-Explorer_thumb.png\" width=\"179\" height=\"87\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h4 id=\"download\">Example document<\/h4>\n<p>You can download an example Word and PDF document here : <a  data-e-disable-page-transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/ingmarverheij.com\/en\/download\/5817\/?tmstv=1776621296\" rel=\"nofollow\" id=\"download-link-5817\" data-redirect=\"false\" >\n\tExample documents<\/a>\n<\/p>","protected":false},"excerpt":{"rendered":"<p>Have you ever read a PDF document and noticed a tooltip when you hovered over an image? Did you notice that the information didn\u2019t looked like it\u2019s supposed to be there? It shouldn\u2019t, it\u2019s not pretty and it annoys me Not only does this happen in my own documents, I\u2019ve see this in official documents [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[292],"tags":[406,404,405,403],"class_list":["post-3352","post","type-post","status-publish","format-standard","hentry","category-no-category","tag-images","tag-pdf","tag-tooltip","tag-word"],"_links":{"self":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/3352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/comments?post=3352"}],"version-history":[{"count":5,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/3352\/revisions"}],"predecessor-version":[{"id":5891,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/3352\/revisions\/5891"}],"wp:attachment":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/media?parent=3352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/categories?post=3352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/tags?post=3352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}