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



Andy Rogers wrote:
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?

you can start with a simple echo "i'm here!: $2" > /tmp/foobar to see if you are getting there.


Then looks like you are not passing the input to psmark so the line should be something like:

psmark -i $1 -o $TMPDIR/$name-marked.ps -x -400 -y 20 -r 0 -s 10 "`date`
$PS2PDF $TMPDIR/$name-marked.ps $TMPDIR/$name.pdf >/dev/null 2>&1
rm -f $TMPDIR/$name-marked.ps

man psmark is the next step.

HTH,
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*




Project hosted by iFAX Solutions