{"id":8072,"date":"2013-10-25T13:32:13","date_gmt":"2013-10-25T18:32:13","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=8072"},"modified":"2013-10-28T10:01:17","modified_gmt":"2013-10-28T15:01:17","slug":"pdf-downloads-broken-in-safari-on-mavericks","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2013\/10\/25\/pdf-downloads-broken-in-safari-on-mavericks\/","title":{"rendered":"PDF Downloads Broken in Safari on Mavericks"},"content":{"rendered":"<p>I&rsquo;ve long used the <tt>WebKitOmitPDFSupport<\/tt> default so that Safari would download PDF files rather than display them in the browser window. In Mavericks, there&rsquo;s <a href=\"http:\/\/www.betalogue.com\/2013\/10\/23\/mavericks-safari-native-pdf-display\/\">a bug<\/a> where this causes Safari to display the raw data of the PDF file. You can prevent this by entering these commands in Terminal go back to the default behavior:<\/p>\n<pre>defaults write com.apple.safari WebKitOmitPDFSupport -bool NO\nkillall -SIGTERM cfprefsd<\/pre>\n<p>I found that the <tt>killall<\/tt> was necessary, even if Safari was not running, in order to make the change stick. Logging out might also work.<\/p>\n<p>When Safari is displaying a PDF file, there are two main ways to save it to disk:<\/p>\n<ul>\n<li>Hover the cursor about an inch up from the bottom of the window. (The bottom doesn&rsquo;t work.) This displays four buttons, the rightmost of which is a downward-pointing arrow that saves the PDF to your Downloads folder.<\/li>\n<li>Choose <strong>File &#8227; Save As&#8230;<\/strong> (Command-S). This lets you pick a folder and a filename, which is often useful for financial statements that have a poor default filename. However, sometimes <strong>File &#8227; Save As&#8230;<\/strong> tries to save a Web archive instead of a PDF.<\/li>\n<\/ul>\n<p>I&rsquo;m not aware of any built-in way to auto-download PDF files without either of these extra steps. If there&rsquo;s a link to the PDF file, you can Option-click it, but often there is no visible link.<\/p>","protected":false},"excerpt":{"rendered":"<p>I&rsquo;ve long used the WebKitOmitPDFSupport default so that Safari would download PDF files rather than display them in the browser window. In Mavericks, there&rsquo;s a bug where this causes Safari to display the raw data of the PDF file. You can prevent this by entering these commands in Terminal go back to the default behavior: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[131,649,30,32,475,345,103],"class_list":["post-8072","post","type-post","status-publish","format-standard","hentry","category-technology","tag-bug","tag-esoteric-preferences","tag-mac","tag-macapp","tag-mavericks","tag-pdf","tag-safari"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=8072"}],"version-history":[{"count":4,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8072\/revisions"}],"predecessor-version":[{"id":8099,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8072\/revisions\/8099"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=8072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=8072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=8072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}