HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
[hylafax-users] fax by email with pdf attach. anyone know the solution please?
>
> Hi, i'm trying to attach a pdf file in e-mail but not works.
>
> The step that i follow:
>
> in hyla.conf:
> MIMEConverters: /usr/lib/fax/filters
>
> In /usr/lib/fax/filters/application/pdf:
>
> #!/bin/bash
> /bin/echo " "
> /bin/echo "showpage"
> /usr/bin/pdf2ps $1 | /usr/lib/fax/filters/filter.pl
>
> In /usr/lib/fax/filters/filter.pl:
>
> #!/usr/bin/perl
> # Read from the standard input
> @text=<STDIN>;
> $size=@text;
>
> # Count the number of "showpage"
> $count=0;
> for($i=0;$i<=$size;$i++){if($text[$i] =~ /showpage/){$count++;}}
>
> # Discard the last line that contain "showpage"
> $num=1;
> for($i=0;$i<=$size;$i++){
> if($text[$i] =~ /showpage/){
> if($num!=$count){$num++;}
> else{$text[$i]=~s/showpage//g;}
> }
>
> print $text[$i];
> }
> ##################################
>
> but if i send an e-mail with pdf file the fax not print the pdf file.
>
> anyone help me please? My hylafax version is 4.2.0 with suse 9.2
>
> thanks!!
>
> P.S: The perms of filters are 755
>
Joan Ramos Ramos <mailto:joanr@xxxxxxxxxxxx>
Dpto. Informática
Tel.: +34 932 232 552 (Ext. 260)
Fax.: +34 932 230 151
------------------------------------------------------------------------------------------------------------------------------------------------
Este mensaje es confidencial y atañe exclusivamente a las personas a las que va dirigido.
Cualquier opinión en el contenida, es exclusivo de su autor y no representa necesariamente
la opinion de UNIPOST, S.A.
Si Ud. no es el destinatario del mensaje, considerese advertido que lo ha recibido por error
y que cualquier difusión o copia estan terminantemente prohibidos. Si ha recibido por error,
por favor comuniquelo a UNIPOST, S.A. al número +34 93 223 25 52 o correo electrónico
a <support@xxxxxxxxxx>.
This e-mail is confidential and intended solely for the use of the individual to whom it is addressed.
Any opinions presented are solely those of the author and do not necessarily represent those of
UNIPOST, S.A.
If you are not the intended recipient, be advised that you have received this e-mail in error and that
dissemination, forwarding or copying of this e-mail is strictly prohibited. If you have received this
e-mail in error please notify it to UNIPOST, S.A. by telephone on number +34 93 223 25 52 or by
e-mail to <support@xxxxxxxxxx>.
------------------------------------------------------------------------------------------------------------------------------------------------
____________________ 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*