HylaFAX The world's most advanced open source fax server

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

[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




Project hosted by iFAX Solutions