HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] Help with coversheet
That makes more sense than the docs I found on the net. I've been
tinkering with it this afternoon, but have run into a few unrelated
problems so I'm now investigating those.
Thanks for the help.
Paul
-----Original Message-----
From: Daniel Hillhouse [mailto:daniel.hillhouse@xxxxxxxxxxxxxxxx]
Sent: Wednesday, November 09, 2005 12:31 AM
To: Paul Smith
Cc: hylafax-users@xxxxxxxxxxx
Subject: Re: [hylafax-users] Help with coversheet
Paul,
I'll try to explain this carefully, but no guarantees that this is 100%.
This is how I did it recently though.
1 .Generate the PS file with driver
2. Insert search and replace functions for coverpage to use. Most
tutorials/how-to's say to use /S as the function name, but the apple
driver already uses this as can be seen with the "xS" on the end of some
lines. I know nothing about postcript but this function works for me.
This is what mine looks like (Change the function names to suit you
though):
1 setlinejoin
/nullstring () def
/DANIS {
dup where {
pop
load dup nullstring ne {S} {pop} ifelse
} {pop} ifelse
} bind def
/DANM { moveto } bind def
/DANS { show } bind def
/rule (_____________________________________________) def
/lw rule stringwidth pop def /lh 30 def
/y 191.4 def /x 0 def
y -30 0 { x exch moveto rule show } for
lw lh x y comments BreakIntoLines
3. Replace your constants with constants from faxcover
(http://www.hylafax.org/man/faxcover.php)
Change this:
999 2060 M (placeholderfax)[44 16 44 40 44 44 45 16 44 44 26 22 44 0]xS
To this:
999 2060 DANM /to-company DANIS
You can do this for all of your short constants. For your comments you
will need to do something different to get them to perform a linebreak.
The text in My file for this is:
1800 -50 325 1300 comments BreakIntoLines
Where the 4 numbers are x,y co-ordinates and line width co-ordinates. If
you insert that line then you can just play with the co-ordinates until
it moves into the right place. These worked for me and had the text
starting about a 3rd down the page.
Hope that helps. Let me know if anything is unclear.
Cheers
Daniel.
Paul Smith wrote:
>I've been trying to find documentation regarding coversheets but every
>one I've found so far has assumed I know postscript.
>
>I have an MSWord file I'd love to use as a coversheet - it's the same
>one we've been using in the standard fax machine for years and I'd like
>to keep some continuity.
>
>I've created a postscript file using the Apple Laserwriter print
driver.
>It looks fine in GSView.
>
>Following this: http://www.hylafax.org/HylaFAQ/Q202.php
>
>I should apparently see something like:
>
>(Please deliver to:) 72 523.33 T
>(Name:) 206.71 505.33 T
>(to-name) 270 505.33 T
>
>Unfortunately I get something in a completely different format
>(placeholderto, placeholderfrom, placeholderfax are shown). I've added
>it to the end of this email.
>
>Any ideas?
>
>Thanks
>Paul
>
>
>
>999 1854 M (placeholderto)[44 16 44 40 44 44 45 16 44 44 26 21 0]xS
>1471 1854 M ( )S
>482 VM?
>1 13906 85
<0001007f000003c3043e0010004bb90004ffe0b3090b3602b8ffc0402409
>103607020008100a970510000f1015c5010108c007010707010f85101001
>10111065022b2f5ded39322f5d395d003f3f3fed11391139392b2b313013
>21153e013332170326232207061511217f017d3775565a6b7e482a502c3f
>fe670426ae715538fede1e425dfffe9c>/TTE1ABEC30t00 AddT42Char
>1 12998 80
<0001007e00000788043e0025006ab90002ffd0b3171c360bb8fff0b31314
>360bb8fff0b3090b3605b8fff0402d090e36080205154220970b0510000f
>101a25120f851008198510b71a0124851ab74f25bf25ef25032526256502
>2b2f5de4ed392fe4fd392fed003f3c3c3f3f3cfde41239392b2b2b2b3130
>1321153e01333216173e0133321615112111342726232206151121113427
>2e012322061511217e017c52a7767f942f609e74abc0fe681c293d4858fe
>68080d402b465afe6804269b61525a59684bcbd8fd65025d4823376873fd
>dc0249461928316a79fde200>/TTE1ABEC30t00 AddT42Char
>/TTE1ABEC30t00 findfont /CharStrings get begin
>/r 85 def
>/m 80 def
>end
>/TTE1ABEC30t00 findfont /Encoding get
>dup 8 /r put
>dup 9 /m put
>pop
>F1S4B Ji
>2498 1818 M <0108060907>[48 31 48 73 0]xS
>2721 1818 M <04>S
>F0S53 Ji
>2820 1854 M (placeholderfrom)[44 16 44 40 44 44 45 16 44 44 26 22 26 43
>0]xS
>3387 1854 M ( )S
>F1S4B Ji
>675 2055 M <01020307>[48 48 48 0]xS
>842 2055 M <04>S
>F0S53 Ji
>999 2060 M (placeholderfax)[44 16 44 40 44 44 45 16 44 44 26 22 44
0]xS
>
>1512 2060 M ( )S
>963 VM?
>1 8314 51 <000200940000057005ba000a0013002d401a08910b0b0a139100030a120f
>7d0415046f0213097f0a140a6b022b2ffd3c2b2fed003f3fed11392fed31
>301321321615140421231121013332363534262b019402f1f6f5fef5feee
>f8fe3901c76f836a5c7f8105baead8defafde003495b47456000>/TTE1ABEC30t00
>AddT42Char
>1 12048 74
<00020049fe5104dc043e00240030008a400e672101322352230216200914
>3624b8ffe0400c09143624002e16281a0e0e0db8ffc0b31316360db8ffc0
>b60911360d0d1a12b8ffc04029090c361295081c28951a2e952110000f69
>1e891e02002b158502320268020e830b0b25831e311e66022b2fed332fed
>2b2ffd39395d003f3fed2fed3ffd2b11392f2b2b392f1112391112392b2b
>5d5d313001211117140e02232026353437051617163332363d0106070623
>22272635341233321617011416333236353426232206035e017d01558dd9
>8cfec0ef02018b0f1f2d4458573c3c5e6dd5835df0c27ca146fe8162504c
>676c4e4e5d0426fc152f64b57032c0a114222d37151f5e75a1472032ba84
>d9f801045461fe9a736f7374747b7100>/TTE1ABEC30t00 AddT42Char
>1 11666 72
<00020048ffe80516043e00180020005d40170a0a0909058f200120960101
>051c40090c361c95141005b8ffc0401f090a3605950d1638110120190109
>830a0a19830022006902018311211166022b2fed2b2fed332fed1112395d
>003fed2b3fed2b11392fed7112392f392f31300121161716333237363705
>0604232226023534002132041215252e0123220706070516fcd00b2a3b5f
>3c36212601915cfefcf3d3f29f013f0119e401088afe620c6754613a250a
>01ae6230451e133025a08b770103aff901348afefad29576664d305f>/TTE1ABEC30t00
>AddT42Char
>1 14042 86
<00010033ffe7049c043e002e00f4b90024fff4b30c0d3626b8ffc040090c
>0d360d180b0b3626b8fff040231011360d230b2504041818194010103619
>400a0a3619191d400e10361d921410000001b8ffc0b314163601b8ffc0b3
>0f103601b8ffc0b5090a36010104b8ffc0403a0e103604922c1619101628
>020910062802391088189810030d230b2504281019401517361940111236
>19400b0f36198318180883283028690201b8ffc0b315173601b8ffc0b311
>123601b8ffc0400e0b0f36018300002083102f1066022b2fed332fed2b2b
>2b2b2fed332fed2b2b2b111217395d5d5d003fed2b332f2b2b2b392f3fed
>2b332f2b2b392f111739002b3130002b2b2b13251e013332373635342726
>272e0235343e0133321e01170526272623220615141716171e0215140e01
>232026330194195a4b522d232e218ed4a5717ad6b4beb57928fe7e0f2330
>44453f282886cbc6696fefcefeddf7012626483e231a272c181119253f96
>6069984b3a7a68263318203123271414101752985b5cae67a600>/TTE1ABEC30t00
>AddT42Char
>/TTE1ABEC30t00 findfont /CharStrings get begin
>/P 51 def
>/g 74 def
>/e 72 def
>/s 86 def
>end
>
>____________________ 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*
>
>
>
>
>
____________________ 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*