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:
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.

Look at the code, you are in the place where a tiff is converted to pdf. Since psmark works with a postscript you have to convert the tiff.


So you have to place a $TIFF2PS -o $TMPDIR/$name.ps $1 before psmark and use $TMPDIR/$name.ps instead of $1 in psmark. BTW please check that you have psmark. Then looks like you have lost the date from the psmark invocation.

May i suggest you to add some debug prints in the right places to help you know what the script is doing or whatever you have done wrong.

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