Overlay files and cover sheets

company name and :RECNAME: where you want to have the name, faxsr is called up in the following way:

#faxsr ETCDIR/cover.icab "REC=Infoflex Connect AB" "RECNAME=Ste- fan Norlin" >cover.final

Note that the result is written to “standard out” in the example above and that above the field names are arbitrary.

At the end of a file which is created with a printout in Windows, a page feed (hex 0x0c) and Esc E (hex 0x1b 0x45) is always added to restore the printer after the print-out. faxsr bypasses these three characters automatically unless the argu- ment -no_skip is given.

Summary:

!Produce the document in a suitable application in Windows.

!Choose HP Laserjet Plus as the printer.

!Choose the font cassette Z: Microsoft 1A for the printer.

!Remember that document codes should exist with some of the built-in type- faces.

!Print the document.

For each fax that is to be sent, the template is “mixed” with the variable data with the aid of the command faxsr.

Some special field codes:

:MESSAGE:

Replaced with the contents in the file which is indicated as an argument. E.g. “MESSAGE=/tmp/message” insert the file /tmp/message instead of the code.

:DATE:

The current date is inserted. The format is yyyy-mm-dd

:TIME:

The current time is inserted. The format is tt:mm.

Note that the script xfax automatically searches for a file cover under ETC-DIR. If this file is there it will be used as a cover sheet. You are welcome to look in xfax to find what field names have been used for the call to faxsr.

There are some things you may need to change in the PCL file, namely:

The symbol set up, XFAX wants to have Latin-1. Change any other control codes for the symbol set up to Latin-1 (ISO 8859-1). The control codes for Latin- 1 are ESC(0N, Roman-8 ESC(0U etc. This is described in more detail in a HP Laserjet manual.

If the MESSAGE codes lie before the screen data in the PCL file you obtain the following scenario. Where you set in the MESSAGE field, the files given are set in during the operation. If the files are more than one page long so that a page break is set in, the screen data (logotype, graphics, etc.) is set in on the page. Therefore, this code must be set in last in the document.

XFAX - User’s Guide 4.3a

26

Page 26
Image 26
Nordic Star Products 4.3A manual Message, Date, Time