Hylafax Mailing List Archives

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

Re: [hylafax-users] Printing a custom header on each fax



Jim Nagy wrote:
I have set up hylafax and am about ready to deploy it. For now, we are going to print all incoming faxes on a shared printer on the network. I would like to have something like, “Linux Fax Server” printed at the top of each fax. We don’t want users getting confused about what they printed and what has come in as a fax. I’ve found that this is not a feature of hylafax, as the header string is passed from the sending fax machine. I was wondering if anyone has found a way to do this anyway.



I have the following set up in my faxrcvd script:



/usr/local/bin/tiff2ps -a $FILE | lpr –Pmain-printer || \

/usr/local/bin/tiff2ps -a $FILE | lpr –Pbackup-printer || \

mutt -s "ERROR Printing" admin-email < $ERRORFILE

cp $FILE /mnt/newfaxes || (cp $FILE /lostfaxes && \

mutt -s "ERROR copying" admin-email < $ERRORFILE2)



I have tried sending tiff2ps first to “pr,” but that doesn’t work because it isn’t an ascii file.



I tried

Echo “Linux Fax Server” > lpr && tiff2ps …etc

This printed “Linux Fax Server” all by itself, and then printed the fax normally on the next page. Is there a way to have them print on the same page? First print “Linux Fax Server” and then print the fax on top of it on the same page? I just need some kind of a way to differentiate a fax from a user printed document.



Thanks,

Jim


I print a timestamp on each document by using annotate from imagemagick, which is free. I convert the fax to a png first, write to it, then convert it to a pdf. Here's the command I use to write my text:


/usr/local/bin/mogrify -font helvetica -pointsize 30 -gravity south -annotate 0 "$TIMESTAMP" $1.png

The $1.png is a parameter passed to the script. This prints my timestamp at the bottom of the page. You can change the $TIMESTAMP variable to whatever you want.



--
John Davis

____________________ 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*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services