[reportlab-users] Re: pdf's corrupted when emailed, possible solution included
   
    Andy Robinson
     
    reportlab-users@reportlab.com
       
    Fri, 23 Apr 2004 08:16:35 +0100
    
    
  
> I encountered similar problem (one year ago) with pdf file 
> corruption. When I 
> used Reportlab with WxPython, the end of file was incomplete 
> (seems like some 
> buffer wasn't writen complete to file.) The file was smaller abot 4-8 
> bytes(?) than generated the same way, when WxPython wasn't used.
> 
> mP
Suggestion:  canvas.save() does not return anything.
How about making it return the size of the file in bytes,
or an md5 checksum?  
Then applications could easily check.
- Andy