![]() |
Riccardo Thankyou for the very usefull information, I have managed to track down the area of the common-functions file which is actually being called which is this code:- TIFF|tiff|TIF|tif) TraceLog "Using tiff2pdf" name="`basename $1 .tif`" $TIFF2PDF -o $TMPDIR/$name.pdf $1 echo "$TMPDIR/$name.pdf" So I changed the code to as follows:- TIFF|tiff|TIF|tif) TraceLog "Using tiff2pdf" name="`basename $1 .tif`" psmark -i $1 -o $TMPDIR/$name-marked.ps -x -400 -y 20 -r 0$ $TIFF2PDF $TMPDIR/$name-marked.ps -o $TMPDIR/$name.pdf rm -f $TMPDIR/$name-marked.ps #$TIFF2PDF -o $TMPDIR/$name.pdf $1 echo "$TMPDIR/$name.pdf" However now when an email gets sent through to my inbox, it has no attachment, the user name is uucp and no body text now. Could you offer me any further guidence. Thanks Andy On Tue, September 2, 2008 16:52, Riccardo Magliocchetti wrote: > 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* > > ____________________ 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*