[reportlab-users] Problem with renderPM.saveToFile; how to output .PNG?
waxmop@gtcinternet.com
reportlab-users@reportlab.com
Thu, 14 Aug 2003 08:20:37 -0400
>>You problably meant to use "drawToFile" instead=2E
The graphics guide on page 4 says to use 'saveToFile' rather than
drawToFile with PNG output:
If we wanted to generate the same drawing as a bitmap file for a website,
say, all we need to do is write code like this:
from reportlab=2Egraphics import renderPM
renderPM=2EsaveToFile(d, 'example1=2Epng', 'PNG')
Many other bitmap formats, like GIF, JPG, TIFF, BMP and PPN are genuinely
available, making it unlikely you'll need to add external postprocessing
steps to convert to the final format you need=2E
That's what I tried=2E It could be that the guide is out-of-date=2E =20
In any case, I tried using drawToFile instead, and that caused a lengthy
error message to run past my screen=2E
Is anyone else successfully outputting =2Epng format files with reportlab?=
Original Message:
-----------------
From: amaury=2Eforgeotdarc@ubitrade=2Ecom
Date: Thu, 14 Aug 2003 09:03:18 +0200
To: waxmop@gtcinternet=2Ecom, reportlab-users@reportlab=2Ecom
Subject: Re: [reportlab-users] Problem with renderPM=2EsaveToFile; how to
output =2EPNG?
Hello,
> renderPM=2EsaveToFile(mydrawing, 'mydrawing=2Epng', 'PNG')
You problably meant to use "drawToFile" instead=2E
--
Amaury Forgeot d'Arc
_______________________________________________
reportlab-users mailing list
reportlab-users@reportlab=2Ecom
http://two=2Epairlist=2Enet/mailman/listinfo/reportlab-users
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web=2Ecom/ =2E