Thanks Michael.<br>Since I've posted my message, I've found 3 python libraries for writing PDF files, but their documentation<br>doesn't state anything regarding "adding images".<br><br><br>I'll try your code.<br>
<br><div class="gmail_quote">On Sat, Feb 20, 2010 at 8:04 AM, Michiel Overtoom <span dir="ltr"><<a href="mailto:motoom@xs4all.nl">motoom@xs4all.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 2010-02-20 06:10, Tony Cappellini wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Does anyone have an example of how to write images to a PDF file?<br>
</blockquote>
<br></div>
from reportlab.pdfgen import canvas<br>
import glob<br>
c = canvas.Canvas("book.pdf")<br>
for fn in glob.glob("*.gif"):<br>
dim = c.drawImage(fn,0,0)<br>
c.setPageSize(dim)<br>
c.showPage()<br>
c.save()<br>
<br>
<br>
<br>
Greetings,<br><font color="#888888">
<br>
-- <br>
"The ability of the OSS process to collect and harness<br>
the collective IQ of thousands of individuals across<br>
the Internet is simply amazing." - Vinod Valloppillil<br>
<a href="http://www.catb.org/%7Eesr/halloween/halloween4.html" target="_blank">http://www.catb.org/~esr/halloween/halloween4.html</a><br>
</font></blockquote></div><br>