Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Re: [hylafax-users] pdfs...
Weird, seems since I commented the script, it screwed up with the line
breaks
Heres the uncommented version
---------------
#!/bin/bash
nameroot=`echo $1|tail -c17|head -c16`
pdfname=`echo $1| tail -c17 | head -c13`pdf
psname=`echo $1| tail -c17 | head -c13`ps
postscriptname=`echo /var/temp/psoutput/$psname`
fax2ps /var/spool/hylafax/$1 > $postscriptname
lp -d meblab $postscriptname
rm -f $postscriptname
mv /var/spool/hylafax/$1 /home/faxrcvd
tiff2pdf /home/faxrcvd/$nameroot > /home/faxrcvd/$pdfname
rm -f /home/faxrcvd/$nameroot
chmod 644 /home/faxrcvd/$pdfname
----------------------
-----Original Message-----
From: hylafax-users-bounce@xxxxxxxxxxx
[mailto:hylafax-users-bounce@xxxxxxxxxxx] On Behalf Of Conlan Adams
Sent: Tuesday, August 16, 2005 5:00 PM
To: Samir Faci; hylafax-users@xxxxxxxxxxx
Subject: Re: [hylafax-users] pdfs...
Not sure if this is a done and dead topic, but heres what I did.
I rewrote faxrcvd to take the tiff, create a comparably named post
script (which got tossed to a printer), create a PDF of the fax, delete
the post script once its printed, and delete the original tiff once the
other processes have been completed.
If your interested, heres the full faxrcvd file
--------------
#!/bin/bash
nameroot=`echo $1|tail -c17|head -c16` ## parses file name
pdfname=`echo $1| tail -c17 | head -c13`pdf ## adds .pdf to one name
psname=`echo $1| tail -c17 | head -c13`ps ## adds .ps to one name
postscriptname=`echo /var/temp/psoutput/$psname` ## includes path
fax2ps /var/spool/hylafax/$1 > $postscriptname ## converts tiff to ps
lp -d printername $postscriptname ## prints the ps
rm -f $postscriptname ## removes the postscript
mv /var/spool/hylafax/$1 /home/faxrcvd ## moves the original
tiff2pdf /home/faxrcvd/$nameroot > /home/faxrcvd/$pdfname ## converts 2
pdf
rm -f /home/faxrcvd/$nameroot ## removes original
chmod 644 /home/faxrcvd/$pdfname ## sets perms on pdf
----------------------------------
-----Original Message-----
From: hylafax-users-bounce@xxxxxxxxxxx
[mailto:hylafax-users-bounce@xxxxxxxxxxx] On Behalf Of Samir Faci
Sent: Tuesday, August 09, 2005 9:59 AM
To: hylafax-users@xxxxxxxxxxx
Subject: [hylafax-users] pdfs...
I Want to have hylafax receive faxes by default in pdf format. Is there
anyway to do that? I know I can setup FaxDispatch to email the files as
pdfs. But is there any way to have hylafax receive the files by default
in
pdf format?
Samir
____________________ HylaFAX(tm) Users Mailing List
_______________________
To subscribe/unsubscribe, click
http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx <
/dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*
____________________ HylaFAX(tm) Users Mailing List
_______________________
To subscribe/unsubscribe, click
http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx <
/dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*