[reportlab-users] Re: pdf's corrupted when emailed, possible solution included

Remy C. Cool reportlab-users@reportlab.com
Fri, 23 Apr 2004 08:06:35 +0200


On Thursday 22 April 2004 18:21, Andy Robinson wrote:
> > i have the same problem. we generate our pdf on the server with
> > reportlab and send it *immediatly* to the customer. but there are
> > always some customers who complains that the pdf is corrupted!
>
> The only idea I can suggest here is to generate a zip
> file with a PDF inside it - Python can do this easily.
>
> I've been emailing MIME attachments with PDFs from Outlook
> for years and never heard of a problem.  If people can
> prove certain mail transfer packages corrupt PDFs, it
> would be good to know that...

Sending pdf's (generated with ReportLab) from kMail (KDE) gave me 
corruption problems on several occasions. Because I had little time 
to investigate, the PDF's had to get to the publishers' before the 
dead-line, I have no clue as to why this corruption occured. 

I will do some testing with kMail and outlook when we enter the test 
phase of integrating a PDF generator with our CRM application.

Remy