[Baypiggies] Adding gif's to a PDF
Michiel Overtoom
motoom at xs4all.nl
Sat Feb 20 17:04:33 CET 2010
On 2010-02-20 06:10, Tony Cappellini wrote:
> Does anyone have an example of how to write images to a PDF file?
from reportlab.pdfgen import canvas
import glob
c = canvas.Canvas("book.pdf")
for fn in glob.glob("*.gif"):
dim = c.drawImage(fn,0,0)
c.setPageSize(dim)
c.showPage()
c.save()
Greetings,
--
"The ability of the OSS process to collect and harness
the collective IQ of thousands of individuals across
the Internet is simply amazing." - Vinod Valloppillil
http://www.catb.org/~esr/halloween/halloween4.html
More information about the Baypiggies
mailing list