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] DateStamp PDF Attachment Received by from FaxDispatch
I have just been looking at some of the existing files in a bit more
detail, and found the common-functions file maybe one which I could hack.
Would it work if I used a similar string to:
psmark -i - -o - -x -400 -y 20 -r 0 -s 10 "`date`"
and added this to one of the lines in the Convert File area of the script,
like maybe:-
PDF|pdf)
TraceLog "Converting $1 to PDF"
case $2 in
PostScript|Postscript|PS|ps)
TraceLog "Using ps2pdf"
name="`basename $1 .ps`"
psmark -i - -o - -x -400 -y 20 -r 0 -s 10 "`date`" | $PS2PDF $1
$TMPDIR/$name.pdf >/dev/null 2>&1
echo "$TMPDIR/$name.pdf"
;;
Would this work or something similar, or am i completley off the mark?
Thanks
Andy
On Mon, September 1, 2008 17:11, Riccardo Magliocchetti wrote:
> Andy Rogers wrote:
>> I have been trying to setup hylafax to put a datestamp in the actual
>> email
>> attachment so I can have an accurate time when we actually received
>> this,
>> however so far I have not been able to achive this.
>>
>> I have read through the various archive mail lists and have tried
>> several
>> approaches and nothing seems to work, I can't get a date stamp to print
>> at
>> the bottom of each fax received.
>>
>> I know it is fairly simple to do if you are printing all faxes to a
>> printer, but how do I actually get the attachment in my e-mail to
>> include
>> the datestamp?
>
> I haven't searched the archives so pick this with a grain of salt :) I
> think
> you can hack MailWithFAX() in faxrcv and then at least BuildAttachArgs and
> ConvertFile from common-utils.sh to handle a new FILETYPE which will call
> in
> the process psmark (as seen in the wiki) or pdftk (see stamp feature) or
> whatever can do the job. The pdftk path looks a bit more troublesome since
> you have to generate the pdf with the date every time a fax arrives or you
> can have a cron job doing it every minute if that's enough.
>
> If the thing is doable and clean enough this could be handy to have in
> stock
> hylafax.
>
> cheers,
> riccardo
>
>
> ____________________ 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*