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:
Ok Riccardo

I think I have got it now, I have altered the code below to how you have
said.

               TIFF|tiff|TIF|tif)
                   TraceLog "Using tiff2pdf"
                   name="`basename $1 .tif`"

echo "i'm here! (4): $2" > /tmp/foobar4

                   $TIFF2PS -o $TMPDIR/$name.ps $1
                   psmark -i $TMPDIR/$name.ps -o $TMPDIR/$name-marked.ps
-x -400 -y 20 -r 0 -s 10 "`date`"

$PS2TIFF $TMPDIR/$name-marked.ps -o $TMPDIR/$name.pdf

rm -f $TMPDIR/$name-marked.ps

                   $TIFF2PDF -o $TMPDIR/$name.pdf $1
                   echo "$TMPDIR/$name.pdf"

Just one final question, do I still need to call the original part of code
$TIFF2PDF -o $TMPDIR/$name.pdf $1 in the second to last line or should
this be excluded?

It was correctly commented in the previous version. BTW i made a typo in my last mail and PS2TIFF should have been written PS2PDF.


I wan't to try and get it correct, as i did try to fiddle on the live
system but caused some problems which my boss did not like.  We did have a
spare linux system i could have use but that died.

To test that hunk of code you don't need a whole hylafax server, you just need a machine with ghostscript, libtiff-tools, psmark and a shell. And a tiff file. Please read [1] in my previous mail.


Please _try_ these few lines before answering to this mail :)

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*




Project hosted by iFAX Solutions