home *** CD-ROM | disk | FTP | other *** search
/ Peanuts NeXT Software Archives / Peanuts-3.iso / Tools / fax / fax.README < prev    next >
Encoding:
Text File  |  1994-02-11  |  2.4 KB  |  63 lines

  1. This package contains two programs, "fax" (a shell script) and
  2. "rtf2ps" (an Objective-C program.)
  3.  
  4. About "fax"
  5. ----------
  6. "fax" is a shell script that will let you fax files from the
  7. command line.  It works by converting the file to PostScript,
  8. inserting some special PostScript comments into the file
  9. (destination phone number and so on) and submitting the 
  10. document to "lpr" to be faxed.
  11.  
  12. This script will also fill in the NeXT fax cover
  13. sheet of your choice if you wish.
  14.  
  15. You can use this filter to fax plain text files (which will be
  16. run through "enscript" to convert them to postscript),
  17. postscript files, or rich text files.   rtf or rtfd files can
  18. be converted to postscript via the "rtf2ps" program included
  19. in this distribution.
  20.  
  21. With the right email addresses, you could even set up an email
  22. alias that could receive NeXTmail and fax it out to a specified
  23. phone number!  (Left as an exercise to the reader, although I
  24. may get around to writing this script some day.)
  25.  
  26. About "rtf2ps"
  27. -------------
  28.  
  29. rtf2ps is a commandline program that will convert rtf or rtfd files to
  30. postscript.  It does this by creating a Text object on the fly and
  31. loading the rtf or rtfd into that object, and then asking the object
  32. to print itself.  Various tricks are used to get the postscript code
  33. to go to standard output rather than the printer, and to allow this
  34. program to work at all, without a UI, even if nobody is logged in.
  35.  
  36. We are all be indebted to Eric P. Scott who made this idea work
  37. via some amazing trickery.  I merely took his code and fiddled with
  38. it to handle both .rtf and .rtfd files, and to output postscript
  39. on standard output.  It really is remarkably clever in the way
  40. it fakes out NXApp into not caring that the Text object isn't
  41. actually in a Window.
  42.  
  43. You can use this program together with the fax script to
  44. fax rtf files from the command line.  For instance,
  45.     
  46.     rtf2ps MyRtfFile.rtf | fax -p 5551212
  47.  
  48.  
  49. I have been told that rtf2ps doesn't handle RTFD files containing
  50. embedded TIFF images properly, but that it does handle RTFD 
  51. containing embedded PostScript.  I haven't had a chance to
  52. look at that yet.
  53.  
  54.  
  55. Both of these programs are completely free; please use them
  56. as you wish.  If you like them, drop me and/or Eric (eps@toaster.sfsu.edu)
  57. a note and let us know.  Please pass any bug reports or suggestions
  58. for improvement along to me.
  59.  
  60. Steve Hayman
  61. February 10, 1994
  62. shayman@Objectario.com
  63.