[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: jpg2pdf :-)



Pol Hallen <debenvaio@fuckaround.org> wrote:
> #!/bin/sh
> convert "$1" "${1/.jpg/.pdf}"

> Now, I'd like convert any files to pdf (like png, txt, etc.) but I
> don't how do.

CUPS has a PDF printer, so I can (for example) "lpr -P pdf
/tmp/stuff.txt". I'm not particularly suggesting you use CUPS for this
conversion, but you might like to take a look and see how it's handled
there.

Chris


Reply to: