Nordic Star Products 4.3A manual Installing Ghostscript and the Xfax driver

Page 31

XFAX and Ghostscript (sending PDF and Postscript)

10.XFAX and Ghostscript (sending PDF and Postscript)

Using XFAX with the software Ghostscript makes it possible to fax Postscript and PDF documents. Ghostscript is available more or less freely as long as you comply with the terms in the licence under which it is distributed. You can learn more at www.ghostscript.com.

Below you find instructions of how to add a XFAX driver to Ghostscript 7.00, which today (june 2001) is the latest version of Ghostscript. The procedure does require knowledge on how to configure and compile a C source code distribution in a UNIX environment. You MUST have a C compiler installed on your UNIX box.

10.1Installing Ghostscript and the XFAX driver

1.Download the Ghostscript distribution. You find information on where it is available at www.ghostscript.com. Extract it to, for example, /opt/gs7.00 (we use this path from now on), and follow the installation instructions to compile it on your platform. We do not provide support for the Ghostscript software itself.

2.Download and store the XFAX source files, gdevxfax.c and gdevxfax.h, into / opt/gs7.00/src. You can get the files from ftp://ftp.infoflex.se/pub/xfax/ghost- script.

3.When you compile Ghostscript you use one of the supplied makefiles, we use src/unixansi.mak. You need to modify the makefile to include the XFAX driver. Add $(DD)xfaxhigh.dev to the DEVICE_DEVS7 line in the makefile. In our dis- tribution we changed line 339 in unixansi.mak:

DEVICE_DEVS7=$(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev $(DD)xfaxhigh.dev

You also need to add the device to devs.mak. We added the following five lines to devs.mak at line 1259:

xfax_=$(GLOBJ)gdevxfax.$(OBJ)

$(DD)xfaxhigh.dev : $(DEVS_MAK) $(xfax_) $(GLD)page.dev $(SETPDEV2) $(DD)xfaxhigh $(xfax_) $(GLOBJ)gdevxfax.$(OBJ) : $(GLSRC)gdevxfax.c $(PDEVH) $(GLCC) $(GLO_)gdevxfax.$(OBJ) $(C_) $(GLSRC)gdevxfax.c

On line three and five above the leading whitespace must be a tab.

Now you should be able to compile gs with support for the XFAX driver.

4.Using the new gs executable, try to convert one of the sample Postscript files using the xfaxhigh driver. For example:

#cd /opt/gs7.00/lib

#../bin/gs -dNOPAUSE -sDEVICE=xfaxhigh -sOutputFile=test.fax ../ examples/golfer.ps

XFAX - User’s Guide 4.3a

31

Image 31
Contents Xfax Contents Dialprefix Defaultprinter Dialtimeout Defaultfont DefaultmarginCharacterset Httpenable Waitfortone Spooldir OverviewEtcdir BindirXfaxdir Installation Keywords Configuring the softwareEnvironment variables Xfax and multiple fax devices Adding actionsConfiguring the software Xfax User’s Guide 4.3a Faxsend Sending a faxOne fax to several recipients group transmission Attaching a note to a faxScript xfax Scheduled transmissionsID of the fax in the queue Printing a fax before sendingDocument codes Script faxadmChargeperminute Telephone cost file ETCDIR/costLOCALZONE=LOCALLY Areacodes LocalzoneAreacodes 08LOCAL 031AREA 3 009ABROAD 0091USA Automatic printing of incoming faxes Receiving faxesFax queues Handling faxesIntr Canceling of a faxReschedule a fax Scheduling a faxPrinting a fax Routine maintenanceListing faxes in a particular directory Cleaning the statistics file Xfax in a Windows environment Using the address book in XfaxInstallation Using the clientXfax in a Windows environment Overlay files and cover sheets Using overlay files as forms and cover pagesCover sheets the old way Date MessageTime Overlay files and cover sheets Sendmail Xfax and e-mailScript faxmail Xfax and e-mail Installing Ghostscript and the Xfax driver Troubleshooting Integrated Http server Integrated Smtp server Modems and flow control Commands Command referenceFaxmaster FaxmailFaxmime Subject FaxprintFaxq FromFaxsend Faxrm1234 7586535 faxfile Faxstat FaxsrFaxwho Exit codes Faxline AccesshttpKeyword reference General keywordsAlertuser AccesssmtpAdministrator AcceptusersCharacterset BrokenselectDialtimeout DefaultfontDefaultmargin DefaultprinterExecuteaftersend DomainExecworkdir ExecuteafterreceiveFailfaxno ExecutebeforesendExitstring FaildirHttpenable Jetfaxpagetime InitstringJetfaxbusytries JetfaxcopyLockingstyle LocalprefixLpprintoption MailonerrorMailonsuccess Printrectoleft NoerrorsaveNostatistics PartialpagesRoundrobin ResolutionReceiveonly ReversestatsSmtpsender SmtpenableSmtpserver 15.1.83 T30PAGELENGTH Symbolset15.1.81 T30ECM 15.1.82 T30RTCXonxoff WaitfortoneWaitfordialtone Troubleshooting Troubleshooting Technical specifications Typefaces in Xfax Index