<div dir="ltr"><br>Dear list members,<br><br>I have a directory that contains about a hundred subdirectories named J0001,J0002,J0003 . . . etc.<br>Each of these subdirectories contains about a hundred JPEGs named P001.jpg, P002.jpg, P003.jpg etc.  <br>
<br>I need to write a python script that will cycle thru each directory and convert ALL JPEGs in each directory into a single PDF file and save these PDF files (one per directory) to an output file.<br><br>Any pointers on how to do this with a Python script would be appreciated.  Reading on the internet it appears that using ImageMagick wouldn't work because of using too much memory.  Can this be done using the Python Image Library or some other library?  Any sample code would also be appreciated.<br>
<br>Thanks,<br>Harry Spier </div>