HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Unknown document type when sending pdf via email



Hi all.

Running Hylafax 4.2.5 (rpm), ghostscript-7.07-33, libtiff-3.6.1-8 under centos 4.2, configured as a email to fax gateway with postfix. When i send a pdf via email i receive this notification about the failed job:

#################################################

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

Error: /undefined in FATAL
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-- --nostringval--
Dictionary stack:
--dict:1067/1123(ro)(G)-- --dict:0/20(G)-- --dict:89/200(L)-- --dict:25/50(L)--
Current allocation mode is local
GNU Ghostscript 7.07: Unrecoverable error, exit code 1



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


---- Unsent job status ----

Destination: 98
JobID: 85
GroupID: 85
Sender: test user
Mailaddr: user@xxxxxxxxxxx
Submitted From: localhost.localdomain
Page Width: 209 (mm)
Page Length: 296 (mm)
Resolution: 196 (lpi)
Status: Error: /undefined in FATAL
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-- --nostringval--
Dictionary stack:
--dict:1067/1123(ro)(G)-- --dict:0/20(G)-- --dict:89/200(L)-- --dict:25/50(L)--
Current allocation mode is local
GNU Ghostscript 7.07: 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/doc105.ps.85        4003 Unknown document type

############################################

I'm using the following scripts that i found on the mailing list, and known to work:

#########/usr/local/faxscripts/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];
}

############## /usr/local/faxscripts/application/pdf
#!/bin/bash
/bin/echo " "
/bin/echo "showpage"

/var/spool/hylafax/bin/pdf2fax $1 | /usr/local/faxscripts/filter.pl

###################################

And here is the resulot of dd if=/var/spool/hylafax/docq/doc105.ps.85 bs=1 count=40 | od -bc :

40+0 records in
40+0 records out
0000000 045 041 120 123 055 101 144 157 142 145 055 063 056 060 012 045
         %   !   P   S   -   A   d   o   b   e   -   3   .   0  \n   %
0000020 045 103 162 145 141 164 157 162 072 040 110 171 154 141 106 101
         %   C   r   e   a   t   o   r   :       H   y   l   a   F   A
0000040 130 040 124 145 170 164 106 157
         X       T   e   x   t   F   o
0000050


Via sendfax, if i send the doc105.ps.85 it fails, if i send the original pdf, it works. Is there anything else i should do? I already googled, and searched the mailings lists for some days now. Don't know what to try next...



Thanks in advance,


Santos

____________________ 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