HylaFAX The world's most advanced open source fax server

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

Re: FAX with letter head



Solution!
Yeh I've been trying to do the same thing myself for the past week and have 
finally got somewhere. Thankyou to everyone who has contributed ideas 
and programs over the past few years of Hylafax archives.

I'm using html2ps.
What you do is convert your plain text to an html document by placing a
<HTML> at the top and
</HTML> at the bottom
and a <BR> at every Linefeed/Return
you can then insert a logo wherever you want is using
<img align=right border=0 src="LOGO.GIF">
This can be done with a simple shell script

#shell script ascii2html
echo \<HTML\>
echo \<img align=right border=0 src=\"TTLINE.GIF\"\>
cat | sed s/.*/\&\<br\>/
echo \<\/HTML\>
#end script

This can be run before you pass the text to sendfax. Or if you want all text 
to receive the treatment then replace the textfmt routine with the above 
routine including a html2ps command at the end of it.

To do all this you'll need
html2ps from http://www.tdb.uu.se/~jan/html2ps.php
(see the relevent hylafaq)
you'll also need Perl v5.0 or later (for html2ps)
and some graphics stuff for the images as discussed in the html2ps 
documentation.
I'm using pbmplus and djpeg (from jpegsrc) on an IBM AIX 4.3 box.
I found this easier to compile than imagemagick and perlmagick.

jpegsrc from ftp://ftp.uu.net/graphics/jpeg
pbmplus from ftp://ftp.khoral.com/pub/dist/pbmplus/

If you just want to use jpg images the djpeg will do the job.
If you wan to use gif images (which came out a lot better on the faxes) then 
you'll need pbmplus as well.

Once again thanks to everyone who contributed ideas, especially the 
html2ps program

I had a thought that it could also be done using an eps image but I don't have 
the postscript knowlede or the time to learn it.






>Hi, I've some text files FAX to my clients using HylaFAX, does anybody 
>know how to add my company's logo on top of each pages of my FAX ? 
>Thanks in advance. 




Project hosted by iFAX Solutions