automatical pdf generating

Nick Craig-Wood nick at craig-wood.com
Mon Jun 25 05:30:06 EDT 2007


Jackie <jackie.BPUG at gmail.com> wrote:
>  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.

ImageMagick eats this sort of thing for lunch.  It is a set of command
line tools for unix.  You can get them with cygwin also

Eg

  montage -geometry 1000x1000+100+100 1.jpg 2.jpg 3.jpg 4.jpg 01.pdf

Which resizes each image to a max dimension of 1000 pixels and then
tiles them into a PDF.


-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list