<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Transiently Damaged PDF Attachments</title>
	<atom:link href="http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/feed/" rel="self" type="application/rss+xml" />
	<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/</link>
	<description>Things that Eric A. Meyer, CSS expert, writes about on his personal Web site; it&#039;s largely Web standards and Web technology, but also various bits of culture, politics, personal observations, and other miscellaneous stuff</description>
	<lastBuildDate>Tue, 11 Jun 2013 15:31:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: rich7300</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-882579</link>
		<dc:creator>rich7300</dc:creator>
		<pubDate>Mon, 05 Nov 2012 20:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-882579</guid>
		<description><![CDATA[If using Firefox you have to disable to Adobe Acrobat NPAPI plug In. In Firefox you have to go to Tools dropdown window then select Add ons. In the add ons you will see the Adobe Acrobat NPAPI plug in and there should be an option to disable it. If using Safari you have to go to your Users Library file then to &quot;internet plug ins and in the internet plug ins file there should be the Adobe Acrobat NPAPI plug in. When you locate it drag it to the trash. You should also trash the attachment that was saved to your desktop. Restart firefox and/or safari and re-save the pdf attachments again. After you re-save the attachments you should then be able to open them from the desktop. It corrected my problem on a Macbook Pro.]]></description>
		<content:encoded><![CDATA[<p>If using Firefox you have to disable to Adobe Acrobat NPAPI plug In. In Firefox you have to go to Tools dropdown window then select Add ons. In the add ons you will see the Adobe Acrobat NPAPI plug in and there should be an option to disable it. If using Safari you have to go to your Users Library file then to &#8220;internet plug ins and in the internet plug ins file there should be the Adobe Acrobat NPAPI plug in. When you locate it drag it to the trash. You should also trash the attachment that was saved to your desktop. Restart firefox and/or safari and re-save the pdf attachments again. After you re-save the attachments you should then be able to open them from the desktop. It corrected my problem on a Macbook Pro.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Warren</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-859855</link>
		<dc:creator>Paul Warren</dc:creator>
		<pubDate>Fri, 26 Oct 2012 12:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-859855</guid>
		<description><![CDATA[I&#039;ve just hit this, and I think I&#039;ve figured out what causes it.

Outlook is sending the PDFs using quoted printable rather than base64 encoding.  Unfortunately, it&#039;s not encoding the line breaks within the file, and when your mail client opens the file it correctly switches these to system line endings.  In other words 0D 0A in the original gets replaced by 0A when you detach it.  This is why the corrupted file is smaller than the original.  Unfortunately, PDFs are not text files, and these substitutions will break the file.

I can&#039;t explain why it works when it is resent.  Presumably Outlook, for reasons best known to itself, switches to base64 encoding.  You can check this by looking at the source of the emails and seeing which encoding Outlook has used in both cases.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve just hit this, and I think I&#8217;ve figured out what causes it.</p>
<p>Outlook is sending the PDFs using quoted printable rather than base64 encoding.  Unfortunately, it&#8217;s not encoding the line breaks within the file, and when your mail client opens the file it correctly switches these to system line endings.  In other words 0D 0A in the original gets replaced by 0A when you detach it.  This is why the corrupted file is smaller than the original.  Unfortunately, PDFs are not text files, and these substitutions will break the file.</p>
<p>I can&#8217;t explain why it works when it is resent.  Presumably Outlook, for reasons best known to itself, switches to base64 encoding.  You can check this by looking at the source of the emails and seeing which encoding Outlook has used in both cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Young</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-760845</link>
		<dc:creator>Patrick Young</dc:creator>
		<pubDate>Mon, 20 Aug 2012 05:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-760845</guid>
		<description><![CDATA[In Thunderbird if you Select &quot;View Source&quot; from the &quot;Other Actions&quot; drop down, you will find the problem.

My guess is that the PDF was sent not with the MIME (Multipurpose Internet Mail Extensions) Content Type of application/pdf and rather used the fall back MIME Content Type of &quot;Content-Type: application/octetstream;&quot;


The IETF&#039;s RFC 2046 says:

&lt;blockquote&gt;
The recommended action for an implementation that receives an
   &quot;application/octet-stream&quot; entity is to simply offer to put the data
   in a file, with any Content-Transfer-Encoding undone, or perhaps to
   use it as input to a user-specified process.
&lt;/blockquote&gt;

The problem is that the developer of an email client can interpret the RFC as they see fit.  As shown below every PDF attachment is done a little differently.

&lt;em&gt;AOL&lt;/em&gt;
&lt;code&gt;
--part1_5602.21b11067.3d165f85_boundary
Content-Type: application/pdf; name=&quot;SSS.pdf&quot;
Content-Transfer-Encoding: base64
&lt;/code&gt;


&lt;em&gt;Web Generated&lt;/em&gt;
&lt;code&gt;
-----=_NextPart_002_1DDF_0D61693F.F2222C51
Content-Type: application/octetstream;
	name=&quot;BKD-7362630486.pdf&quot;
Content-Disposition: attachment;
	filename=&quot;BKD-7362630486.pdf&quot;
Content-Transfer-Encoding: base64
&lt;/code&gt;

&lt;em&gt;Outlook&lt;/em&gt;
&lt;code&gt;
------=_NextPart_000_005D_01CCEFEE.E3B18A60
Content-Type: application/pdf;
	name=&quot;QQQ.pdf&quot;
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename=&quot;QQQ.pdf&quot;
&lt;/code&gt;

&lt;em&gt;UNKNOWN&lt;/em&gt;
&lt;code&gt;

_006_DFCF1B0798ACA443872BC146528C9C1703E28F20ABSBEXMAIL07shu_
Content-Type: application/pdf; name=&quot;ZZZ.PDF&quot;
Content-Description: ZZZ.PDF
Content-Disposition: attachment; filename=&quot;ZZZ.PDF&quot;; size=143065; creation-date=&quot;Tue, 29 May 2012 16:47:46 GMT&quot;;
	modification-date=&quot;Tue, 29 May 2012 16:47:46 GMT&quot;
Content-Transfer-Encoding: base64

&lt;em&gt;Apple&lt;/em&gt;
--Apple-Mail-18--970524984
Content-Disposition: inline;
	filename=&quot;AAA.PDF&quot;
Content-Type: application/pdf;
	name=&quot;AAA.PDF&quot;
Content-Transfer-Encoding: base64
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>In Thunderbird if you Select &#8220;View Source&#8221; from the &#8220;Other Actions&#8221; drop down, you will find the problem.</p>
<p>My guess is that the PDF was sent not with the MIME (Multipurpose Internet Mail Extensions) Content Type of application/pdf and rather used the fall back MIME Content Type of &#8220;Content-Type: application/octetstream;&#8221;</p>
<p>The IETF&#8217;s RFC 2046 says:</p>
<blockquote><p>
The recommended action for an implementation that receives an<br />
   &#8220;application/octet-stream&#8221; entity is to simply offer to put the data<br />
   in a file, with any Content-Transfer-Encoding undone, or perhaps to<br />
   use it as input to a user-specified process.
</p></blockquote>
<p>The problem is that the developer of an email client can interpret the RFC as they see fit.  As shown below every PDF attachment is done a little differently.</p>
<p><em>AOL</em><br />
<code><br />
--part1_5602.21b11067.3d165f85_boundary<br />
Content-Type: application/pdf; name="SSS.pdf"<br />
Content-Transfer-Encoding: base64<br />
</code></p>
<p><em>Web Generated</em><br />
<code><br />
-----=_NextPart_002_1DDF_0D61693F.F2222C51<br />
Content-Type: application/octetstream;<br />
	name="BKD-7362630486.pdf"<br />
Content-Disposition: attachment;<br />
	filename="BKD-7362630486.pdf"<br />
Content-Transfer-Encoding: base64<br />
</code></p>
<p><em>Outlook</em><br />
<code><br />
------=_NextPart_000_005D_01CCEFEE.E3B18A60<br />
Content-Type: application/pdf;<br />
	name="QQQ.pdf"<br />
Content-Transfer-Encoding: base64<br />
Content-Disposition: attachment;<br />
	filename="QQQ.pdf"<br />
</code></p>
<p><em>UNKNOWN</em><br />
<code></p>
<p>_006_DFCF1B0798ACA443872BC146528C9C1703E28F20ABSBEXMAIL07shu_<br />
Content-Type: application/pdf; name="ZZZ.PDF"<br />
Content-Description: ZZZ.PDF<br />
Content-Disposition: attachment; filename="ZZZ.PDF"; size=143065; creation-date="Tue, 29 May 2012 16:47:46 GMT";<br />
	modification-date="Tue, 29 May 2012 16:47:46 GMT"<br />
Content-Transfer-Encoding: base64</p>
<p><em>Apple</em><br />
--Apple-Mail-18--970524984<br />
Content-Disposition: inline;<br />
	filename="AAA.PDF"<br />
Content-Type: application/pdf;<br />
	name="AAA.PDF"<br />
Content-Transfer-Encoding: base64<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Czar</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-704630</link>
		<dc:creator>Czar</dc:creator>
		<pubDate>Thu, 28 Jun 2012 04:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-704630</guid>
		<description><![CDATA[Mine are not retrievable in any circumstance once they&#039;ve become corrupted.  I&#039;ve not used Thunderbird in a long time and so this isn&#039;t applicable to my circumstance.  I did read that when files are opened and scanned often, they can become corrupted.  Needless to say I&#039;ll be storing mine in someplace where they won&#039;t get scanned by third parties.  It should keep this to a minimum.]]></description>
		<content:encoded><![CDATA[<p>Mine are not retrievable in any circumstance once they&#8217;ve become corrupted.  I&#8217;ve not used Thunderbird in a long time and so this isn&#8217;t applicable to my circumstance.  I did read that when files are opened and scanned often, they can become corrupted.  Needless to say I&#8217;ll be storing mine in someplace where they won&#8217;t get scanned by third parties.  It should keep this to a minimum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Meyer</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-690813</link>
		<dc:creator>Eric Meyer</dc:creator>
		<pubDate>Mon, 11 Jun 2012 19:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-690813</guid>
		<description><![CDATA[In my case, Czar, the files were actually viewable via the GMail web interface but broken in Thunderbird.  They stayed viewable in GMail and continued to be broken in Thunderbird.

So that was my eventual solution: if an attachment is borked in Thunderbird, download it via the GMail web interface.  Unsatisfying, but practical.]]></description>
		<content:encoded><![CDATA[<p>In my case, Czar, the files were actually viewable via the GMail web interface but broken in Thunderbird.  They stayed viewable in GMail and continued to be broken in Thunderbird.</p>
<p>So that was my eventual solution: if an attachment is borked in Thunderbird, download it via the GMail web interface.  Unsatisfying, but practical.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Czar</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-688629</link>
		<dc:creator>Czar</dc:creator>
		<pubDate>Thu, 07 Jun 2012 00:07:04 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-688629</guid>
		<description><![CDATA[Hi, I&#039;m a long time gmail user.  I&#039;ve found that pdfs I have stored on the gmail servers are often corrupted.  I&#039;ve read where if these files are scanned by software on the server, that sometimes they will be corrupted.  

I know and have no reason to think that things have changed - that  Google continues to scan the accounts and uses the information for purpose of advertising.  Has anyone considered that Google may be damaging these files while scanning them?]]></description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m a long time gmail user.  I&#8217;ve found that pdfs I have stored on the gmail servers are often corrupted.  I&#8217;ve read where if these files are scanned by software on the server, that sometimes they will be corrupted.  </p>
<p>I know and have no reason to think that things have changed &#8211; that  Google continues to scan the accounts and uses the information for purpose of advertising.  Has anyone considered that Google may be damaging these files while scanning them?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Meyer</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-660272</link>
		<dc:creator>Eric Meyer</dc:creator>
		<pubDate>Fri, 13 Apr 2012 04:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-660272</guid>
		<description><![CDATA[Hey, &lt;a href=&quot;http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-660074&quot; rel=&quot;nofollow&quot;&gt;Rachel&lt;/a&gt;, thanks for the heads-up.  Getting my posts scraped and republished by others has been a frequent occurrence over the years and I’ve long since made my peace with it.  The only way to prevent it is not to publish in the first place, and for me that’s not worth the cost.

I made “datanoia” up on the spot, though doubtless I wasn’t the first, so it really just meant what I had in my head, which is: “paranoia about the data one receives”, with a secondary definition of “paranoid about the data one shares”—sort of a mirror image of the first definition.  That was all.  Though I suppose it also makes for a useful way to ferret out blog-scrapers!]]></description>
		<content:encoded><![CDATA[<p>Hey, <a href="http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-660074" rel="nofollow">Rachel</a>, thanks for the heads-up.  Getting my posts scraped and republished by others has been a frequent occurrence over the years and I’ve long since made my peace with it.  The only way to prevent it is not to publish in the first place, and for me that’s not worth the cost.</p>
<p>I made “datanoia” up on the spot, though doubtless I wasn’t the first, so it really just meant what I had in my head, which is: “paranoia about the data one receives”, with a secondary definition of “paranoid about the data one shares”—sort of a mirror image of the first definition.  That was all.  Though I suppose it also makes for a useful way to ferret out blog-scrapers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rachel</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-660076</link>
		<dc:creator>Rachel</dc:creator>
		<pubDate>Thu, 12 Apr 2012 15:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-660076</guid>
		<description><![CDATA[Please feel free to moderate out of this discussion both this and my previous comment. It was FYI only. Thanks. And I like this new word (to me), datanoia. Thanks for another educational read!]]></description>
		<content:encoded><![CDATA[<p>Please feel free to moderate out of this discussion both this and my previous comment. It was FYI only. Thanks. And I like this new word (to me), datanoia. Thanks for another educational read!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rachel</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-660074</link>
		<dc:creator>Rachel</dc:creator>
		<pubDate>Thu, 12 Apr 2012 15:37:14 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-660074</guid>
		<description><![CDATA[In reading your article, I became fascinated with a term you used &quot;datanoia&quot;, and I did a search query to see if there might be a definition of this word out there. I came across a site with an exact replica of your blog. It appears that razworks thinks they wrote the articles on this blog: web designer Sarasota. com.]]></description>
		<content:encoded><![CDATA[<p>In reading your article, I became fascinated with a term you used &#8220;datanoia&#8221;, and I did a search query to see if there might be a definition of this word out there. I came across a site with an exact replica of your blog. It appears that razworks thinks they wrote the articles on this blog: web designer Sarasota. com.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Filipe Miguel Tavares</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-659250</link>
		<dc:creator>Filipe Miguel Tavares</dc:creator>
		<pubDate>Tue, 10 Apr 2012 18:38:46 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-659250</guid>
		<description><![CDATA[Same problem here, but with Gmail + Mail.app. Maybe something gmail related?]]></description>
		<content:encoded><![CDATA[<p>Same problem here, but with Gmail + Mail.app. Maybe something gmail related?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Janne Lehtinen</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-658869</link>
		<dc:creator>Janne Lehtinen</dc:creator>
		<pubDate>Mon, 09 Apr 2012 20:40:37 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-658869</guid>
		<description><![CDATA[Whenever I send a PDF from InDesign too hastily before the printing is completed it&#039;s reported as corrupted - maybe it could be something as simple as that.]]></description>
		<content:encoded><![CDATA[<p>Whenever I send a PDF from InDesign too hastily before the printing is completed it&#8217;s reported as corrupted &#8211; maybe it could be something as simple as that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Hester</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-658829</link>
		<dc:creator>Chris Hester</dc:creator>
		<pubDate>Mon, 09 Apr 2012 18:37:11 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-658829</guid>
		<description><![CDATA[Is it a problem with the filenames? Do they contain characters that might cause your system problems? And what happens is she doesn&#039;t rename the PDFs before sending them? I&#039;d try anything incase it works!]]></description>
		<content:encoded><![CDATA[<p>Is it a problem with the filenames? Do they contain characters that might cause your system problems? And what happens is she doesn&#8217;t rename the PDFs before sending them? I&#8217;d try anything incase it works!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milo</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-658071</link>
		<dc:creator>Milo</dc:creator>
		<pubDate>Sat, 07 Apr 2012 15:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-658071</guid>
		<description><![CDATA[I have seen smtp servers that misbehave in escaping. Any line that starts with a period should be escaped in transit but some servers fail that. An email attachment is probably base64 encoded which shouldn&#039;t contain periods so this might not be the cause but it&#039;s easy to test for. Just send an email with some lines of content, a line with just a period, and then more lines of content. If all content arrives at the destination then the problem lies elsewhere. If not then some smtp server is mangling emails.]]></description>
		<content:encoded><![CDATA[<p>I have seen smtp servers that misbehave in escaping. Any line that starts with a period should be escaped in transit but some servers fail that. An email attachment is probably base64 encoded which shouldn&#8217;t contain periods so this might not be the cause but it&#8217;s easy to test for. Just send an email with some lines of content, a line with just a period, and then more lines of content. If all content arrives at the destination then the problem lies elsewhere. If not then some smtp server is mangling emails.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-657664</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 06 Apr 2012 12:45:24 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-657664</guid>
		<description><![CDATA[I&#039;m wondering if it&#039;s not an odd gmail quirk because I have a very similar problem.  My company is switching over to using gmail as their email provider, and we use the web interface.  I have a customer who sends pdfs to me all the time.  9/10 if I try to open the pdf after I&#039;ve saved it locally, it fails to open.  If I resave the file (from the same email), it will then open.  If I forward that email to a colleague (who&#039;s not on gmail yet), I often have to send it 2-3 times, then it mysteriously can be opened.

Drives me insane.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m wondering if it&#8217;s not an odd gmail quirk because I have a very similar problem.  My company is switching over to using gmail as their email provider, and we use the web interface.  I have a customer who sends pdfs to me all the time.  9/10 if I try to open the pdf after I&#8217;ve saved it locally, it fails to open.  If I resave the file (from the same email), it will then open.  If I forward that email to a colleague (who&#8217;s not on gmail yet), I often have to send it 2-3 times, then it mysteriously can be opened.</p>
<p>Drives me insane.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Hepler</title>
		<link>http://meyerweb.com/eric/thoughts/2012/04/05/transiently-damaged-pdf-attachments/#comment-657628</link>
		<dc:creator>Scott Hepler</dc:creator>
		<pubDate>Fri, 06 Apr 2012 10:43:14 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/?p=1732#comment-657628</guid>
		<description><![CDATA[Hi Eric:

I wonder if there might be .js in there, perhaps doing something funky or even mean?

FWIW,
-s.]]></description>
		<content:encoded><![CDATA[<p>Hi Eric:</p>
<p>I wonder if there might be .js in there, perhaps doing something funky or even mean?</p>
<p>FWIW,<br />
-s.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->