automatical pdf generating

Evan Klitzke evan at
Mon Jun 25 09:23:39 CEST 2007

On 6/24/07, Jackie <jackie.BPUG at> wrote:
> Hi, all,
> There are 50 folders in my hard driver C:
> C:\01.c:\02,...,c:\50
> There are 4 pictures in each folder:
> 1.jpg,2.jpg,3.jpg,4.jpg
> For each folder, I want to print the 4 pictures into a single-paged
> pdf file (letter sized; print horizontally). All together, I want to
> get 50 pdf files with names: 01.pdf,02.pdf,...,50.pdf.
> Is it possible to use Python to realized the above process? I know
> there is a module named "reportlab". Is there any easy command in the
> module to do my job?

It might be easier for you to use a simpler scripting language, like
bash. I realize that you're on Windows, but I've done a lot of neat
things to do PDF transformations in the past with bash and pdftk. In
addition to pdftk, there are a number of other open source tools for
manipulating pdfs (and I believe you can also use ImageMagick and
treat them as images). It might be worthwhile to install Cygwin and
explore this option.
Evan Klitzke <evan at>

More information about the Python-list mailing list