Re: tiff to pdf
- To: mutt-users@xxxxxxxx
- Subject: Re: tiff to pdf
- From: bill lam <cbill.lam@xxxxxxxxx>
- Date: Sun, 9 Nov 2008 19:00:48 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=lcJMVJGZjI5Q5+MU4tdrEyLWYtPGUfG2NM/t5GMuZQM=; b=TAw/swb7l5qNi54+UMEklESoAl95gUKyi5vUl008Lxtv/m4tVEBCNIBASmc7Mktb/Z hyOUPhiUjaBw6/RKYZTtPZIWFKO47pg+qtxHV/JLz6KD4Cw2t9ds7++V/TPwfYXN8Rt2 tD7CHqPjaDHjbElfQ7MOuoQF/dmfap0hG9yu0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; b=U7XOyV/0FMIsj+W07c0jqL9LKfiFcqcysCqUHWVF4TUjQX8CkTZ8rRFaykKWYbGw17 atwFO3EnXRaX7+h1yNcHtkId4CcxmcRkGodc+GS/Lsi/xXq08VANhJy4EV/+3pe7XSw/ IH/GysNlwaV1Ge08+1ETBnQbNvUiHUupI22QY=
- In-reply-to: <20081109101446.GA16829@xxxxxxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- References: <20081109081354.GA12452@b2j> <20081109101446.GA16829@xxxxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-10-30)
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 李商隱 寄令狐郎中
嵩雲秦樹久離居 雙鯉迢迢一紙筆 休問梁園舊賓客 茂陵秋雨病相如