Hylafax Mailing List Archives

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

Re: Customised document conversions



At 14:42 12/09/98 +0100, Andy Smith <abs@maunsell.co.uk> wrote:
>Hi,
>It mentions in the documentation that there is a 'user contributed' 
>script called wpr for preparing wordperfect documents for transmission.
>
>I cant find this anywhere..[snip]

Good morning,

This subject came up a little while ago, and I reproduce the final 'FAQ'
email from Jeff So <jcs@travelsurf.com> below :

>I am using HylaFax4.0, running on ScoUnix Opensever, I also
>have Wordperfect 5.2,6.0 installed on this machine.
>
>Step 1: 
>You need a postscript printer driver to make this working, Wordperfect
>comes with these drivers, but by default, the installation will not
>install any postscript driver.  So, I have to do a 
>	winstall -p
>which allows me to install more driver from .all files.  I chose the
>HPIIIP PostScript Driver.
>
>Step 2:
>Run xwppmgr under root to add a printer, I choose HPIIIP PostScript, I
>believe which printer you choose does not matter, because I choose the
>destination to Disk.  I specified the out name as <doc>.ps,  So, now,
>any document you print with this printer driver will create a PostScript
>file with the extension .ps.   At this point, at least you shall able to
>send this PostScript file out as fax.
>
>Step 3:
>However, have all the users first print to a ps file, then send out the
>ps file is troublesome, so we can automate this little more by having the
>sendfax do the automatic conversion.  The wprint program comes with WP
>can do the printing for you.  However, due to some unknown reason ( I 
>guess you can find it out if you have a support contact from Corel ),
>wprint in WP6.0 cannot accept a destination as Disk.  * Or I don't know 
>how to specify the destination as Disk, I try many different ways.
>The workaround is to run the 
>	xwpdest*
>program from WP, create a dummy destination. I call it fax which point to
>Custom Command, I change the command to "<f>", since there is only a
>filename there, so I think this means do nothing.  Now, you shall able to
>run the following command :
>
>	wprint -f myfile.ps -o fax -p hplj3pps.prs myfile
>
>*Notice that WP does not seen to follow the command exactly, but it does
>generate the myfile.ps file.  NOT EXACTLY means it will not use the ps
>file name you gave.
>
>Step 4:
>Now, you are ready to make change to the typerules.
>I put the following at the end of the typerules file :
>-------cut here-----
># The following send out Wordperfect file directly
>0       byte            0xff            ps      %F/wp2ps %i >%o
>--------------------
>
>Step 5: 
>Create the wp2ps script file as 
>-------cut here--------
>#!/bin/sh
># wp2ps - output Postscript from a WP file
># - Make sure the fax destination is defined.
>#   It shall defined as Custom command, with <f> only
># - Make sure a postscript printer is defined
>#   It shall have destination to Disk, with <doc>.ps
>#   In my case, I choose HP Laser IIIP Postscript printer
>
>/usr/wp/shbin10/wprint -f $1.ps -o fax -p hplj3pps.prs $1
>
>#wait for the wprint to finish
>while [ ! -f $1.ps ]; do
>    sleep 1
>done
>
>#cat the file to standard output
>cat $1.ps
>
>#delete the ps file now.
>rm $1.ps
>-----------------------
>
>
>Step 6:
>
>	sendfax -n -d 2337266 my_wordperfect_document
>
>
>NOTICE :
>
>- I am not an expert on HylaFax nor Wordperfect, this is just how I
>made it working, this may not be the best way or the only way.
>
>- Beware that Wordperfect probably has different fonts with the gs 
>package you installed. So, I found sometime your wordperfect documents 
>may not be sent out because the gs cannot generate the fax images. The
>safest way is to use the same fonts which support by the gs package 
>under WP.
>
>
>

Hope this helps,
Phil Watkinson,
Boston, UK            ~ Boston is a nice place; and so is Beckenham.



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services