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
Riccardo
Thanks for your help so far, from what you are saying I think I have
understood you, I have made the following changes now, but not applied
them as yet:-
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`
$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"
Could you let me know if I have understood you correctly then If I have I
shall try and apply these changes.
Thanks
Andy
On Wed, September 3, 2008 09:16, Riccardo Magliocchetti wrote:
> 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*