[reportlab-users] Corrupt Emailed PDFs ... any resolution
Tue, 25 May 2004 09:59:13 -0700
We regularly send out 2000+ emails with rl attached pdf's. From time to time
some of the students report that the pdf is corrupt. Strangely if I send it
again it is fine, no change in code. Additionally if I ask them to try
another client the pdf is fine. I have been trying for months to see if I
can isolate a case where this happens. It always ends up being their client,
or network snafu, un-repeatable to date. The only fact that has been
repetitious is on each mailing to students at least one student will say the
attachment is corrupt. If I isolate a repeatable case I will gladly report
Here is the the message MIME structure we use
- attach text/plain quotable-printable body_text
- attach application/pdf base64 encoded pdf
and use ...
open(file, "rb") even though I am running on Linux.
On Monday 24 May 2004 06:35 am, Robin Becker wrote:
> firstname.lastname@example.org wrote:
> > Hi there,
> > I wanted to know if there was a work around for the corrupt PDF documents
> > generated with Reportlab and emailed with outlook?? This problem only
> > seems to effect PDF documents generated with ReportLab .. other PDF files
> > generated with other programs work fine
> > regards
> > *binarystar*
> I know of no real problem in this area. Does this occur with all ReportLab
> generated documents?
> As an excercise can you email me a small example with outlook as an
> attachment and inside an attached zip file. Presumably if there's a problem
> the zip file version will be different to the one attached directly. If
> corruption occurs I will be able to tell immediately and we can proceed to
> attempt debugging.