[reportlab-users] Canvas: Can I use file objects instead?

Paul McNett p at ulmcnett.com
Thu Mar 10 23:30:33 EST 2005

Paul McNett wrote:
> reportlab.pdfgen.canvas.Canvas takes a filename as a required argument,
> but is there a way for me to pass a file object instead?

Sorry, I just answered my own question by reading the source code. 
Perhaps the docstring should be updated to note that the filename 
parameter can be either a name or a file object.

Thanks for ReportLab, this is a really great toolkit!

pkm ~ http://paulmcnett.com

More information about the reportlab-users mailing list