converting jpg to pdf

Thomas Guettler guettli at thomas-guettler.de
Thu May 26 10:03:28 EDT 2005


Am Thu, 26 May 2005 07:00:21 -0700 schrieb Raghul:

> Hi friends
>             Is it possible to convert jpg to pdf  in python. I need a
> program to convert jpg format file to pdf. Is there any sample or any
> library to do that? Pls guide me.


Hi,

import os
os.system("convert foo.jpg foo.pdf")

convert is part of ImageMagick.

 HTH,
    Thomas

-- 
Thomas Güttler, http://www.thomas-guettler.de/





More information about the Python-list mailing list