HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] add headers to received fax




I struggled at this one but not for long. Its been popular, I had a few
requests for it.
Add the attached file to your /usr/bin directory.
add this line to your faxrcvd script:


/usr/bin/tiff2ps -pa1 $FILE | /usr/bin/faxprint.pl $FILE | lpr

and along the bottom of each fax you will get a line that says:

recvq/Filename     Page 1 of 5

It doesnt do date & time, but have a look at faxprint.pl and you should see
how it 
does what it does so modify it as you see fit.
If you have too many problems email me and I should be able to adjust it for
you.
Hope it helps...
You will need perl installed on your system. One day I might port it to c
and then
submit it as a patch to include with hylafax.



Chris Parsons
Infotec Communications.



-----Original Message-----
From: hylafax-users-bounce@hylafax.org
[mailto:hylafax-users-bounce@hylafax.org]On Behalf Of Pedro Rocadas
Sent: Wednesday, 10 April 2002 10:50 PM
To: hylafax-users@hylafax.org
Subject: [hylafax-users] add headers to received fax 


Hi there. My boss asked me if it's possible adding
headers(dd:mm:yy hh:mm:ss)to received facsimiles, wich
they are printed. Our printer unfortunally doesn't
have this feature(a internal clock is running only for
energy save), so I started smashing my brains to find
a dirty way :-) to accomplish my boss. I hate given up
but we can't win all the time. The best I could afford
is this

#!/bin/sh

TIMER=`date +'%T'`

DATER=`date +'%d/%m/%Y'

/usr/X11R6/bin/mogrify -pointsize 12 -font times.ttf
-draw 'text 10,0 "'$TIMER-$DATER'"' fax02113.tif

/usr/bin/tiff2ps -a fax02113.tif > FaxPS.ps

This work 99% well. The problem is where $TIMER-$DATER
is placed. The fax "start" at 0,0 so, the label
override anything stored there. Imagine that you have
text "FAX" in the fax. $TIMER-$DATER is mixed with
text "FAX" and the result is a bit bad. Sorry my poor
explanation but my english today(and the others :-)) )
is very problematic. If I could move the fax one line
the script will work 100% but I tried almost options
of mogrify and nothing worked. Any imagemagick guru
out there? :-). Cheers.

P.S. I can receive email at office but our email
server suffer serious problems sometimes so, my
official address is this now. Thanks.

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

____________________ 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@hylafax.org < /dev/null


faxprint.pl




Project hosted by iFAX Solutions