Thanks Michael.<br>Since I&#39;ve posted my message, I&#39;ve found 3 python libraries for writing PDF files, but their documentation<br>doesn&#39;t state anything regarding &quot;adding images&quot;.<br><br><br>I&#39;ll try your code.<br>
<br><div class="gmail_quote">On Sat, Feb 20, 2010 at 8:04 AM, Michiel Overtoom <span dir="ltr">&lt;<a href="mailto:motoom@xs4all.nl">motoom@xs4all.nl</a>&gt;</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(&quot;book.pdf&quot;)<br>
for fn in glob.glob(&quot;*.gif&quot;):<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>
&quot;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.&quot; - 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>