Is there a programmatic way to transform a sequence of image files into a PDF?

Posted by Salim Fadhley on Stack Overflow See other posts from Stack Overflow or by Salim Fadhley
Published on 2010-04-11T23:10:43Z Indexed on 2010/04/11 23:13 UTC
Read the original article Hit count: 235

Filed under:
|
|
|

I have a sequence of JPG images. Each of the scans is already cropped to the exact size of one page. They are sequential pages of a valuable and out of print book. The publishing application requires that these pages be submitted as a single PDF file.

I could take each of these images and just past them into a word-processor (e.g. OpenOffice) - unfortunately the problem here is that it's a very big book and I've got quite a few of these books to get through. It would obviously be time-consuming. This is volunteer work!

My second idea was to use LaTeX - I could make a very simple document that consists of nothing more than a series of in-line image includes. I'm sure that this approach could be made to work, it's just a little on the complex side for something which seems like a very simple job.

It occurred to me that there must be a simpler way - so any suggestions?

I'm on Ubuntu 9.10, my primary programming language is Python, but if the solution is super-simple I'd happily adopt any technology that works.

© Stack Overflow or respective owner

Related posts about python

Related posts about tex