Section 2 : Client Applications

Q215: How to send HTML files?


? Got something to say about this answer? Hit the question mark to invoke the mailer and send your comments to the HylaFAQ maintainers.

Q.
How to send HTML files?

A.
From: Phil Watkinson <pkw@elgro.co.uk>
To: HylaFAX List <hylafax-users@hylafax.org>
Subject: Re: flexfax: faxing HTML
Date: 11 February 1999 10:19
At 16:11 10/02/99 +0000, "Tim Pailthorpe" wrote:

>I want to fax HTML documents so they look like html pages not
>source.
>

First of all, fetch html2ps by Jan Karrman from :

         http://www.tdb.uu.se/~jan/html2ps.html

It is a perl script and does an excellent job on any text/html stuff;
it will also tackle embedded images if you have ImageMagick and
PerlMagick installed.

Second, insert the following into the typerules file, just above the
bottom line :
#
# HTML support
0    string    <!DOCTYPE HTML    ps    /usr/local/bin/html2ps %i >%o
0    string    <!doctype html    ps    /usr/local/bin/html2ps %i >%o
0    string    <HEAD             ps    /usr/local/bin/html2ps %i >%o
0    string    <head             ps    /usr/local/bin/html2ps %i >%o
0    string    <TITLE            ps    /usr/local/bin/html2ps %i >%o
0    string    <title            ps    /usr/local/bin/html2ps %i >%o
0    string    <HTML             ps    /usr/local/bin/html2ps %i >%o
0    string    <html             ps    /usr/local/bin/html2ps %i >%o

Remember all this is at the client end (if your client is a different
machine to your fax server).

HTH,
Phil Watkinson,
Boston, UK


 Back to FAQ Index FAQ Index  Next question in List Q216: Problems with killtime of the job?
faq@hylafax.org. Last updated $Date: 2002/03/07 09:17:53 $.