[Baypiggies] Adding gif's to a PDF
cappy2112 at gmail.com
Sun Feb 21 02:11:41 CET 2010
It worked perfectly, verbatim.
Not knowing anything about the structure of PDFs, I was envisioning I would
need to tweak each image, but the PDF came out exactly
as I was expecting!
On Sat, Feb 20, 2010 at 8:04 AM, Michiel Overtoom <motoom at xs4all.nl> wrote:
> 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)
> "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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Baypiggies