[magick-users] pdf to png in python
Carl Karsten
carl at personnelware.com
Mon Dec 24 15:28:12 PST 2007
I am using python's reportlab to create a pdf (of a conference name tag) and I
want to be able to have an image preview on the registration form web page.
convert foo.pdf foo.png does what I need. What I am looking for is a good API
to that, or anything similar.
Ideally, it won't require a file system file (easier on the web server.)
Here is what the code looks like that generates the pdf:
buffer = StringIO()
rw = dReportWriter(OutputFile=buffer, ReportFormFile=xmlfile, Cursor=ds)
rw.write()
pdf = buffer.getvalue()
return pdf
all suggestions welcome.
Carl K
More information about the Magick-users
mailing list