HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] Altering fax image w/FaxModify does not work



Hi,

In order to alter the fax image, we use FaxModify.

Inside FaxModify script a .jar is invoked that makes some modifications on the file and then we put it back in $fil, but it does not work, fax that is sent is the original one.

Please note that files we call aux_ascii and aux_ascii2 are being effectively generated, also result.pdf is generated, but result.pdf is not being faxed. The fax that is sent is the original one.

We have tested .jar having aux_ascii2 as input and it works as expected.

The FaxModify script:


#!/bin/bash ps2ascii $fil aux_ascii lines=$(wc -l aux_ascii | cut --delimiter=" " -f 1) lines2=$(($lines - 3)) tail -n $lines2 aux_ascii > aux_ascii2 java -jar hylafax.jar aux_ascii2 cp result.pdf $fil

Any help would be appreciated.

Many thanks in advance,

Elena



--
Elena Benítez López
Instituto Nacional de Estadística
S.G. Informática Estadística

Correo-e: eblopez@xxxxxx


____________________ 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