sebadlington
asked on
Can Ghostscript convert a Jpg file into a PDf?
Hi Guys,
I need to convert some jpg files into PDF. I've been using Ghostscript to do it the other way as in PDF to Jpeg which works fine.
I have this dos batch file so far which will create me a bunch of PDF files but they are all empty and I get a bunch of errors as it goes through them
I need to convert some jpg files into PDF. I've been using Ghostscript to do it the other way as in PDF to Jpeg which works fine.
I have this dos batch file so far which will create me a bunch of PDF files but they are all empty and I get a bunch of errors as it goes through them
@echo off
if %1.==Sub. goto %2
for %%f in (C:\PODExpect\*.jpg) do call %0 Sub action %%~nf
goto end
:action
gswin32c.exe -q -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=C:\PODExpect\%3.pdf C:\PODExpect\%3.jpg -c quit
:end
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
works a treat - I'd used Irfan before but not downloaded the Plugins! Job done
Thanks
Seb
Thanks
Seb
ASKER
Thanks CodeCruiser - I'd already tried that link but without much success, the Irfan route is nice and easy ;)
Cheers
Cheers
Seb,
You're welcome. IrfanView is a great piece of software! Cheers, Joe
You're welcome. IrfanView is a great piece of software! Cheers, Joe
http://stackoverflow.com/questions/4283245/using-ghostscript-to-convert-jpeg-to-pdf