Mailinglist Archive: opensuse (4348 mails)

< Previous Next >
Re: [SLE] Print an incoming FAX
  • From: Jethro Cramp <jsc_lists@xxxxxxxxxxxxx>
  • Date: Wed, 2 Oct 2002 15:29:37 +0000
  • Message-id: <200210021529.37956.jsc_lists@xxxxxxxxxxxxx>
Ted,

Thanks. I like the idea but I have to put some 'glue' in first to extract the
tiff mime attachment.

Regards,

Jethro



On Monday 30 September 2002 23:08, Ted Harding wrote:
> I do this, but "by hand" when received. I can get my MUA (XFMail)
> to pipe the attachment to a script which prints it directly, or
> displays it so I can read it on-screen. Here is the on-screen
> script:
>
> #! /bin/bash
> TIME=`date +"%Y.%m.%d:%H.%M.%S"`
> convert -page A4 $1 FaxMePrint.$TIME.ps
> gv -antialias -scale 2 -geometry 990x820-0+0 FaxMePrint.$TIME.ps
> rm FaxMePrint.$TIME.ps
>
> This will work as is provided the attachment is identified as TIFF
> by having extension ".tif", so that 'convert' knows it is a TIFF
> file. It is then converted to PostScript and can be viewed in
> 'gv' page by page. You can print it (or selected pages) from
> 'gv' if you want, after viewing.
>
> The direct-print script is similar, but simply does
>
> #! /bin/bash
> TIME=`date +"%Y.%m.%d:%H.%M.%S"`
> convert -page A4 $1 FaxMePrint.$TIME.ps
> lpr FaxMePrint.$TIME.ps
>
> It does not invoke 'gv' and the line which deletes the PS
> file is also absent.
>
> You may be able to adapt this to what you want: hope it helps.
> Ted.


< Previous Next >
This Thread
  • No further messages