HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Coverpage blues



Hi All,

For days now I've been trying to produce a working cover page for my
Hylafax v4.2.0 server (Debian sarge), but I still can't get the
comments to show up. Perhaps someone can tell me what I'm doing wrong.
Below is an example of my efforts: a test page made with tgif v4.1.43
that's only supposed to print 'Comments:' followed by the actual
comments (message body) a line or two beneath. From what I've read it's
supposed to work like this, but every time I add those six lines near
the end that contain the 'comments BreakIntoLines' statement, the other
side receives nothing but a blank cover page.

Any tips would be much appreciated.

Jaap

Here's my test page:
=======================================================
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 26 803 91 817
%%Title: test-coverpage
%%CreationDate: Mon Dec 27 23:29:35 2004
%%Creator: Tgif-4.1.43-QPL written by Bill Cheng (bill.cheng@xxxxxxx)
%%ProducedBy: (unknown)
%%Pages: 1
%%DocumentFonts: (atend)
%%EndComments
%%BeginProlog

/tgifdict 51 dict def
tgifdict begin

/TGMAX
 { exch dup 3 1 roll exch dup 3 1 roll gt { pop } { exch pop } ifelse
 } def
/TGMIN
 { exch dup 3 1 roll exch dup 3 1 roll lt { pop } { exch pop } ifelse
 } def
/TGSW { stringwidth pop } def

/bd { bind def } bind def

/GS { gsave } bd
/GR { grestore } bd
/NP { newpath } bd
/CP { closepath } bd
/CHP { charpath } bd
/CT { curveto } bd
/L { lineto } bd
/RL { rlineto } bd
/M { moveto } bd
/RM { rmoveto } bd
/S { stroke } bd
/F { fill } bd
/TR { translate } bd
/RO { rotate } bd
/SC { scale } bd
/MU { mul } bd
/DI { div } bd
/DU { dup } bd
/NE { neg } bd
/AD { add } bd
/SU { sub } bd
/PO { pop } bd
/EX { exch } bd
/CO { concat } bd
/CL { clip } bd
/EC { eoclip } bd
/EF { eofill } bd
/IM { image } bd
/IMM { imagemask } bd
/ARY { array } bd
/SG { setgray } bd
/RG { setrgbcolor } bd
/SD { setdash } bd
/W { setlinewidth } bd
/SM { setmiterlimit } bd
/SLC { setlinecap } bd
/SLJ { setlinejoin } bd
/SH { show } bd
/FF { findfont } bd
/MS { makefont setfont } bd
/AR { arcto 4 {pop} repeat } bd
/CURP { currentpoint } bd
/FLAT { flattenpath strokepath clip newpath } bd
/TGSM { tgiforigctm setmatrix } def
/TGRM { savematrix setmatrix } def

1 setlinejoin
/nullstring () def
/IS {
    dup where {
        pop
        load dup nullstring ne {S} {pop} ifelse
    } {pop} ifelse
} bind def

end

%%EndProlog
%%Page: 1 1

%%PageBoundingBox: 26 803 91 817
tgifdict begin
/tgifsavedpage save def

1 SM
1 W

0 SG

72 0 MU 72 11.602 MU TR
72 128 DI 100.000 MU 100 DI DU NE SC

GS

/tgiforigctm matrix currentmatrix def
% TEXT
NP
0 SG
   GS
      1 W
      50 50 M
      GS
            0 SG
            /Courier FF [18 0 0 -18 0 0] MS
            (Comments: ) SH
      GR
   GR

GR
tgifsavedpage restore

/Courier findfont 11 scalefont setfont
/rule (________________________________) def
/y 189 def /x 141 def
y -29 73 { x exch moveto rule show } for
rule stringwidth pop 29 x y comments BreakIntoLines
grestore

end
showpage

%%Trailer
%MatchingCreationDate: Mon Dec 27 23:29:35 2004
%%DocumentFonts: Courier
%%EOF
=======================================================

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

____________________ 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