HylaFAX The world's most advanced open source fax server

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

[hylafax-users] faxmail prologue / created ps contains leading blank page



Alohá!

Debian sarge
Version: 1:4.2.1-5sarge3

Problem:

When feeding mails that contain nothing but an attachment (ps or pdf (pdf support added via MIMEConverters)) to '/usr/bin/faxmail -v -n -s a4 -d $faxno > /tmp/faxjob$$ 2>&1' the ps that is created, then put in /var/spool/hylafax/docq/ and sent by hylafax contains a blank leading page.

Looking at the ps file the following starts all processed files:

+++++++++++++++++++++++++++++++++++++++++++++++++

%!PS-Adobe-3.0
%%Creator: HylaFAX TextFormat Class
%%Title: HylaFAX-Mail
%%CreationDate: Mon May 22 12:28:29 2006
%%For: nobody
%%Origin: 0 0
%%BoundingBox: 0 0 595 842
%%Pages: (atend)
%%PageOrder: Ascend
%%Orientation: Portrait
%%DocumentNeededResources: font Helvetica-Bold Courier
%%EndComments
%%BeginProlog
/$printdict 50 dict def $printdict begin
/Cols 1 def
/PageWidth 7.77 def
/PageHeight 11.09 def
/LH 240 def
/B{gsave}def
/LN{show}def
/EL{grestore 0 -240 rmoveto}def
/M{0 rmoveto}def
/O{gsave show grestore}def
/LandScape{90 rotate 0 -16835 translate}def
/U{1440 mul}def
/UP{U 72 div}def
/S{show grestore 0 -240 rmoveto}def
/InitGaudyHeaders{
/HeaderY exch def /BarLength exch def
/ftD /Times-Bold findfont 12 UP scalefont def
/ftF /Times-Roman findfont 14 UP scalefont def
/ftP /Helvetica-Bold findfont 30 UP scalefont def
/fillbox{ % w h x y => -
moveto 1 index 0 rlineto 0 exch rlineto neg 0 rlineto
closepath fill
}def
/LB{ % x y w h (label) font labelColor boxColor labelPtSize => -
gsave
/pts exch UP def /charcolor exch def /boxcolor exch def
/font exch def /label exch def
/h exch def /w exch def
/y exch def /x exch def
boxcolor setgray w h x y fillbox
/lines label length def
/ly y h add h lines pts mul sub 2 div sub pts .85 mul sub def
font setfont charcolor setgray
label {
dup stringwidth pop
2 div x w 2 div add exch sub ly moveto
show
/ly ly pts sub def
} forall
grestore
}def
/Header{ % (file) [(date)] (page) => -
/Page exch def /Date exch def /File exch def
.25 U HeaderY U BarLength .1 sub U .25 U [File] ftF .97 0 14 LB
.25 U HeaderY .25 add U BarLength .1 sub U .25 U [()] ftF 1 0 14 LB
.25 U HeaderY U 1 U .5 U Date ftD .7 0 12 LB
BarLength .75 sub U HeaderY U 1 U .5 U [Page] ftP .7 1 30 LB
1 1 Cols 1 sub{
BarLength Cols div mul .19 add U HeaderY U moveto 0 -10 U rlineto stroke
}for
}def
}def
/InitNormalHeaders{
/HeaderY exch def /BarLength exch def
/ftF /Times-Roman findfont 14 UP scalefont def
/ftP /Helvetica-Bold findfont 14 UP scalefont def
/LB{ % x y w h (label) font labelColor labelPtSize => -
gsave
/pts exch UP def /charcolor exch def
/font exch def /label exch def
/h exch def /w exch def
/y exch def /x exch def
/ly y h add h pts sub 2 div sub pts .85 mul sub def
font setfont charcolor setgray
label stringwidth pop 2 div x w 2 div add exch sub ly moveto
label show
grestore
}def
/Header{ % (file) [(date)] (page) => -
/Page exch def pop /File exch def
.25 U HeaderY U BarLength 2 div U .5 U File ftF 0 14 LB
BarLength .75 sub U HeaderY U 1 U .5 U Page ftP 0 14 LB
1 1 Cols 1 sub{
BarLength Cols div mul .19 add U HeaderY U moveto 0 -10 U rlineto stroke
}for
}def
}def
/InitNullHeaders{/Header{3{pop}repeat}def pop pop}def
7.77 11.34 InitNullHeaders
/sf1{/Helvetica-Bold findfont 10 UP scalefont setfont}def
/s1{sf1 show}def
/sf0{/Courier findfont 10 UP scalefont setfont}def
/s0{sf0 show}def
end
%%EndProlog
%%Page: "1" 1
save $printdict begin
.05 dup scale
sf0 ()[()()](1)Header
360 16092 moveto
B()S
B()S
B()S
B()S
B()S
B()S
B()S


showpage
end restore

+++++++++++++++++++++++++++++++++++++++++++++++++
Then the attachment's code starts with
%!PS-Adobe-3.0
%%BoundingBox: 0 0 595 792
%%LanguageLevel: 1
%%Creator: [...]
and so forth.

After trying literally everything I could think of (including i.e. renaming /var/spool/hylafax/etc/faxmail.ps) I am at my wits' end.

How do I tell faxmail to simply take the attachment that already is in proper ps format and send it to hylafax instead of creating a ps file that contains a blank page and below that the original ps file?

The -d option doesn't seem to do the trick. Or is the problem at the hylafax-server side? Sending the very same documents via sendfax from the command line works perfectly fine...

--
Schöne Grüße aus Bonn

Martin Minkler
Systemadministration

// artegic AG
// Dreizehnmorgenweg 40-42
// 53175 Bonn
// Tel.: +49(0)228 22 77 97-61
// Fax: +49(0)228 22 77 97-900
// www.artegic.de



____________________ 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