Description

The d2afp command transforms a ditroff data stream file preformatted for an AFP device into an AFP data stream file so that you can print the file on an InfoPrint printer.

The process to transform troff files into AFP data stream files has two steps:

  1. The troff file is first formatted by specifying the troff -Tafp command. This formatting step produces a device-independent troff (ditroff) file.
      Note:
    1. Use the -Tafp flag and value; otherwise, you cannot transform the ditroff file with the d2afp command. If you do not want to specify the -Tafp flag and value each time you use the troff command, you can set the TYPESETTER environment variable to afp. To do this, enter this command at the command-line prompt or add this line to your .profile file (Bourne shell or Korn shell) or the .cshrc file (C shell) in your home directory:
      export TYPESETTER=afp
    2. Although you cannot use the d2afp command to transform ditroff files formatted with troff -Tpsc or troff -Thplj, you can print them. Use the psc or hplj command to convert the file to PostScript or PCL format. Then use ps2afp or pcl2afp to transform it.
  2. The ditroff file is then transformed into an AFP data stream file with the d2afp command.

The PSF DSS automatically runs the d2afp command whenever:

  • InfoPrint identifies the format of a document in a print job as ditroff.
  • You specify document-format=ditroff with the -x flag or in an attributes file submitted with the pdpr command.
  • You submit a ditroff print job and include the -odatatype=ditroff flag and keyword-value pair with one of the AIX print commands (enq, lp, and qprt) or with the lprafp command.
  • You select an attributes file that has ditroff in the Type of Data in Print File field when using the InfoPrint SMIT panels to submit a print job.