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

Re: Enviar pdf adjunto en un correo y este enviarlo como fax por hylafax



He conseguido que esto me funcione, tenía mal escrita una ruta, pero ahora cuando envio el mail con el pdf adjutno me devuelve un correo con la siguiente informacion,  sabeis a que se debe?

Your facsimile job to nº_fax was not sent because document conversion
to facsimile failed.  The output from the converter program was:

Error: /nocurrentpoint in --show--
Operand stack:
 --nostringval--
Execution stack:
 %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
Dictionary stack:
 --dict:1122/1686(ro)(G)-- --dict:0/20(G)-- --dict:81/200(L)-- --dict:98/117(L)--
Current allocation mode is local
Last OS error: 2
ESP Ghostscript 815.01: Unrecoverable error, exit code 1


Check any PostScript documents for non-standard fonts and invalid constructs

    ---- Unsent job status ----

     Destination: 981160468
           JobID: 38
         GroupID: 38
          Sender: =?ISO-8859-1?Q?Roc=EDo_V=E1zquez?= Furelos
        Mailaddr: rvazquez@jaerod.com
  Submitted From: localhost
      Page Width: 209 (mm)
     Page Length: 296 (mm)
      Resolution: 98 (lpi)
          Status: Error: /nocurrentpoint in --show--
Operand stack:
 --nostringval--
Execution stack:
 %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
Dictionary stack:
 --dict:1122/1686(ro)(G)-- --dict:0/20(G)-- --dict:81/200(L)-- --dict:98/117(L)--
Current allocation mode is local
Last OS error: 2
ESP Ghostscript 815.01: Unrecoverable error, exit code 1

         Dialogs: 0 (exchanges with remote device)
           Dials: 0 (consecutive failed calls to destination)
           Calls: 0 (total phone calls placed)
           Pages: 0 (pages transmitted)
        TotPages: 0 (total pages to transmit)
        Attempts: 0 (attempts to send current page)
          Dirnum: 0 (directory of next page to send)

    ---- Documents submitted for transmission ----

The following documents were submitted for transmission and are
available on the server for reuse until they are automatically
purged when this job is removed.  Documents may also be manually
removed using the faxrm command; consult faxrm(1) for information.

Filename                 Size Type
docq/doc38.ps.38       139446 Unknown document type

El jue, 09-02-2006 a las 13:43 +0100, Rocío Vázquez Furelos escribió:
Hola a todos,

el asunto a lo mejor no explica bien lo que quiero hacer, a ver si aqui va mejor:
Necesito enviar un correo desde un cliente de correo a una dirección nº_fax@dominio y que este correo junto con los datos adjuntos que lleve se envie a ese número de fax.
Estoy utilizando hylafax y he conseguido que el correo se envie a ese número de fax y el fax lo reciba.  El problema que tengo es que los datos adjuntos el fax no los recibe.

He buscado en google y he visto que para hacer esto tengo que crear un script y hacer los siguientes pasos:

1) Modificar /etc/hylafax/hyla.conf y añadir una línea MIMEConverters:/usr/local/faxscripts/
2) Crear un fichero filter.pl con permisos 755 en el directorio /usr/local/faxscripts/ con el siguiente contenido:

#!/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];


}

3) Crear un script pdf con el siguietne contenido:

#!/bin/bash
/bin/echo " "
/bin/echo "showpage"
/usr/bin/gs -q -sPAPERSIZE=a4 -dBATCH -dNOPAUSE -r600x800
-sDEVICE=pswrite -sOutputFile=- $1 | /usr/local/faxscripts/filter.pl

4) Reiniciar hylafax y enviar un correo con un pdf adjunto. 
Hice todo esto y me llega el correo al fax pero el pdf que mando adjunto no me llega. 

Alguien sabría decirme por qué o que estoy haciendo mal?

Muchas gracias y perdon por un correo tan grande.






Reply to: