<<< Date Index >>>     <<< Thread Index >>>

Re: tiff to pdf



On Sun, 09 Nov 2008, Christian Ebert wrote:
> There's also tiff2pdf which would safe the detour via ps2pdf.
> 
> Unfortunately piping to 'xpdf /dev/stdin' doesn't work in this
> case.
> 
> But the following script does for me:
> 
> $ cat muttiff.sh
> #!/bin/sh
> 
> tf=`mktemp`
> # copy mutt's tempfile so it's not removed to early
> cp "$1" "$tf"
> tiff2ps -a "$tf" | ps2pdf - > "$tf.pdf"
> xpdf "$tf.pdf" && rm -f "$tf" "$tf.pdf"
> 
> 
> in connection with the mailcap entry:
> 
> image/tiff; muttiff.sh %s

Hi Christian,

Thank you for the detail information. This (and tiff2pdf) works very
well.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩299 李商隱  寄令狐郎中
    嵩雲秦樹久離居  雙鯉迢迢一紙筆  休問梁園舊賓客  茂陵秋雨病相如