HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Strange issue - HylaFax sends postscript file as raw postscript text




Problem : I have a 3 page Postscript file which I attempt to fax.  
When I send a Postscript fax, Hylafax sends the fax as plain, raw
postscript text
(i.e. 178 pages of postscript output) rather than the 3 pages it's
supposed to be !!
However, HylaFax seems to believe everything is fine and sends me a
"completed
successfully" .. for the entire 178 page fax :-)

Hylafax : 4.1.6 w/Sambafax
System  : RH Linux 8.0 3.2.7 w/ghostscript 7.05-20 on Intel PC
Modem   : USR Courier HST v.34 FAX (class 2.0)

Status  : My system receives faxes perfectly (fax forwarding with PDF
works like a breeze.  Just brilliant!)

---

Troubleshooting : When I send a fax with Sambafax the fax is printed on
my Windows PC to a PS file.  The PS file is handled by Sambafax which
parses the file to retrieve the fax number and then processes the
command
${SENDFAX} -n -D -f ${MailTo} -d ${FAXNUM} ${FAXFILE}.  This actually
happens,
and I have modified the sambafax script to leave the original $FAXFILE
in the
/tmp directory.  I have then converted the *.PS file to *.PDF to view it
and
it's very much the same as the original.  Second step : Check the SENDQ
and
DOCQ and logs.

/sendq contains the queue file (q2) which states that the fax is
actually 178 pages
(which is very wrong - it's three pages..)

/docq contains
-rw-------    1 uucp     uucp     18012276 Jul 23 11:19 doc2.ps;01
-rw-r-----    1 uucp     60002      708160 Jul 23 11:18 doc2.ps.2
The original postscript file ($FAXFILE under /tmp) looks like this
-rw-------    1 lp       lp         643063 Jul 23 11:18 sambafax.10744
[I have tried converting the doc2.ps* files into PDF and they are just
plain postscript text,
 rather than the text/graphics pages they are supposed to be..  Could it
be ps2fax!?!?]

An excerpt from the log says
Jul 23 11:19:33.47: [10765]: SESSION BEGIN 00000029 472273873699
Jul 23 11:19:33.47: [10765]: HylaFAX (tm) Version 4.1.6
Jul 23 11:19:33.47: [10765]: SEND FAX: JOB 2 DEST 73873699 COMMID
00000029 DEVICE '/dev/ttyS0'
....
Jul 23 11:20:13.62: [10765]: SEND file "docq/doc2.ps;01"
....
Jul 23 11:20:20.86: [10765]: --> [7:CONNECT]
Jul 23 11:20:20.86: [10765]: SEND begin page
Jul 23 11:20:20.86: [10765]: <-- data [1027]
Jul 23 11:20:20.86: [10765]: <-- data [1026]
....
Then it finishes page 1 properly and it ready for page 2
Jul 23 11:20:58.80: [10765]: SEND send MPS (more pages, same document)
Jul 23 11:20:58.80: [10765]: <-- data [2]
Jul 23 11:21:05.49: [10765]: --> [2:OK]
Jul 23 11:21:05.49: [10765]: <-- [8:AT+FPS?\r]
Jul 23 11:21:05.63: [10765]: --> [1:1]
Jul 23 11:21:05.63: [10765]: --> [2:OK]
Jul 23 11:21:05.63: [10765]: SEND recv MCF (message confirmation)
Jul 23 11:21:05.63: [10765]: SEND FAX (00000029): FROM db@hue.no TO
73873699 (page 1 of 178 sent in 0:52)

Again, the log tells us that the document it's trying to send
(docq/doc2.ps;01) is actually 178 pages .. 

-------

Questions : 
1.  What's happening :-) ? Why does HylaFax even convert the original
Postscript to *two* new Postscript files??
2.  How come the original three page Postscript is converted into 178
pages of text?
3.  How do I go about further troubleshooting and does anyone have a
clue where to look?

Some other input:
- My original postscript file contains extra fonts.  Does this pose a
problem?
- I haven't used syslog nor do I know how to use it.

--------

Anyone?

Thanks in advance,

Yours
Diderich Buch
Oslo, Norway

=================================

"Header" of original Postscript file (in /tmp/sambafax.**) :
2345X@PJL JOB
@PJL SET RESOLUTION = 600
@PJL ENTER LANGUAGE = POSTSCRIPT
%!PS-Adobe-3.0
%%Title: Microsoft Word - Document6
%%Creator: PScript5.dll Version 5.2
%%CreationDate: 7/23/2003 11:17:59
%%For: db
%%BoundingBox: (atend)
%%Pages: (atend)
%%Orientation: Portrait
%%PageOrder: Ascend
%%DocumentNeededResources: (atend)
%%DocumentSuppliedResources: (atend)
%%DocumentData: Clean7Bit
%%TargetDevice: (HP LaserJet 5) (2014.103) 1
%%LanguageLevel: 2
%%EndComments

%%BeginDefaults
%%PageBoundingBox: 14 13 581 829
%%ViewingOrientation: 1 0 0 1
%%EndDefaults

"Header" of doc2.ps.2 :
%!PS-Adobe-3.0
%%Creator: HylaFAX TextFmt Class
%%Title:
%%CreationDate: Wed Jul 23 11:18:44 2003
%%For: lp
%%Origin: 0 0
%%BoundingBox: 0 0 595 842
%%Pages: (atend)
%%PageOrder: Ascend
%%Orientation: Portrait
%%DocumentNeededResources: font Courier-Bold
%%EndComments
%%BeginProlog



____________________ 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@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*




Project hosted by iFAX Solutions