Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64100 > unrolled thread

Converting folders of jpegs to single pdf per folder

Started byHarry Spier <vasishtha.spier@gmail.com>
First post2014-01-16 11:11 -0800
Last post2014-01-16 11:11 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Converting folders of jpegs to single pdf per folder Harry Spier <vasishtha.spier@gmail.com> - 2014-01-16 11:11 -0800

#64100 — Converting folders of jpegs to single pdf per folder

FromHarry Spier <vasishtha.spier@gmail.com>
Date2014-01-16 11:11 -0800
SubjectConverting folders of jpegs to single pdf per folder
Message-ID<mailman.5600.1389900283.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Dear list members,

I have a directory that contains about a hundred subdirectories named
J0001,J0002,J0003 . . . etc.
Each of these subdirectories contains about a hundred JPEGs named P001.jpg,
P002.jpg, P003.jpg etc.

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.

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.

Thanks,
Harry Spier

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web