{"id":391,"date":"2012-01-13T12:35:28","date_gmt":"2012-01-13T12:35:28","guid":{"rendered":"http:\/\/www.sharonmurphy.com\/wordpress\/?p=391"},"modified":"2020-07-24T13:33:01","modified_gmt":"2020-07-24T12:33:01","slug":"disappearing-txt-p2","status":"publish","type":"post","link":"https:\/\/www.sharonmurphy.com\/wordpress\/2012\/01\/disappearing-txt-p2\/","title":{"rendered":"Disappearing Text in PDFs &#8211; Part 2"},"content":{"rendered":"<p>Following on from <a href=\"https:\/\/www.sharonmurphy.com\/wordpress\/2011\/11\/disappearing-text-pt1\/\" target=\"_blank\" rel=\"noopener noreferrer\">a post I wrote a while back<\/a> on text that was present in the source file, but mysteriously vanished on saving to PDF, here&#8217;s a similar incident I encountered with a different resolution.<\/p>\n<p>In this case, again authoring in FrameMake, I was working on a number of reference manuals in the range of 500-800 pages long a piece. All was going well until it came time to publish one of the longer books as a PDF. On checking the generated file to make sure all looked well, I skimmed through quickly. First few pages, <em>fine<\/em>&#8230; next few pages, <em>fine<\/em>&#8230; next few pages, <em>&#8230; hang on &#8211; what&#8217;s that big gap there about?&#8230;<\/em> next few pages, n<em>ow all the tables are blank!<\/em>&#8230; skip quickly to the end&#8230; <em>all that&#8217;s left is the header\/footer rulings!<\/em><\/p>\n<p>Starting over and saving the PDF again gave the same results &#8211; in fact, it looked like problems might just be happening earlier and earlier in the document each time.<\/p>\n<p>First port of call was a few &#8220;turn it off and back on again&#8221;s. First the software, then the whole machine. After a reboot, the same problem kept recurring.<\/p>\n<p>Next stop, fiddling with Acrobat settings, with an occasional reboot for good measure. Still no joy.<\/p>\n<p>A bit of a Google, trying out a few random suggestions, and finally I hit on the solution that worked: delete the font cache (<em>C:\\Windows\\System32\\FNTCACHE.DAT<\/em> (that&#8217;s <em>.DAT<\/em> &#8211; not <em>.dll<\/em>! Don&#8217;t mess with your <em>.dll<\/em>s or you&#8217;ll go blind!)), reboot, save the pdf immediately.<\/p>\n<p>The font cache is regenerated when you reboot, so if the same problem arises again, lather, rinse and repeat.<\/p>\n<p>In the case of the document I was working on, I had to delete the font cache and reboot between every save of the document or text started disappearing again. Depending on the length and complexity of the document you&#8217;re working on, your mileage may vary.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following on from a post I wrote a while back on text that was present in the source file, but mysteriously vanished on saving to PDF, here&#8217;s a similar incident I encountered with a different resolution. In this case, again authoring in FrameMake, I was working on a number of reference manuals in the range &hellip; <a href=\"https:\/\/www.sharonmurphy.com\/wordpress\/2012\/01\/disappearing-txt-p2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Disappearing Text in PDFs &#8211; Part 2&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[7,40],"class_list":["post-391","post","type-post","status-publish","format-standard","hentry","category-tech-writing","tag-framemaker","tag-pdf"],"_links":{"self":[{"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/posts\/391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/comments?post=391"}],"version-history":[{"count":5,"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/posts\/391\/revisions"}],"predecessor-version":[{"id":1497,"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/posts\/391\/revisions\/1497"}],"wp:attachment":[{"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/media?parent=391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/categories?post=391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sharonmurphy.com\/wordpress\/wp-json\/wp\/v2\/tags?post=391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}