Description

The line2afp command transforms traditional line data , mixed-mode data, and ASCII files into the AFP (MO:DCA-P) data stream, so that you can print the file on an InfoPrint printer.

When you use the line2afp command to convert traditional line data or ASCII data, you must specify a page definition (pagedef option). If the page definition names fonts, InfoPrint uses those fonts. If the page definition does not name any fonts, and if you want the file to print with more than one font, the input file must contain table reference characters (TRCs), and you must:

  • Specify trc=yes.
  • Use chars to indicate the fonts to be associated with each TRC.
If the page definition does not specify fonts, and you have not specified any TRCs, your job will print, although the output might not be formatted correctly.

If the page definition does not name any fonts, and you want the whole file to print with one font, then you must:

  • Specify trc=no.
  • Use chars to indicate the single fonts in which the file should be printed.
If the page definition does not specify fonts, and you have not specified any TRCs, your job will print, although the output might not be formatted correctly.

The line2afp command searches for resources in this order:

  1. Inline resources.
  2. Resource Access Table (RAT) entries in any directory specified by the userpath option (TrueType and OpenType fonts, color management resources (CMRs), and data object resources (DORs); see Note at the end of this list).
  3. File names matching the object name in paths specified by the userlib option (AFP resources, except TrueType and OpenType fonts).
  4. RAT entries in these system paths:
    1. Paths specified by the objconlib option.
    2. Paths specified by thereslib option.
  5. File names matching the object name in these system paths:
    1. Paths specified by the objconlib option.
    2. Paths specified by the reslib option.
    3. Paths specified by the psfpath environment variable.
    4. With AIX or Linux:/usr/lpp/psf/reslib
Note: The paths specified by userpath and fontpath must be the same paths where the AFP Resource Installer installed CMRs, DORs, and TrueType and OpenType fonts. The AFP Resource Installer (Program Number 5639-EE2) is available from your representative. For more information about TrueType and OpenType fonts, see Using OpenType Fonts in an AFP System.

When the line2afp command finds more than one resource with the same name in the same directory, it selects the resource to be used depending on the file extension. The next table shows the order in which resources with the same name but different file extensions are used by line2afp.

File extensions for resources

Type of Resource File Extensions Searched (see note)
BCOCA (bar code) objects
  1. No file extension
  2. OBJ
  3. OBJECT
Code pages
  1. ECP
  2. No file extension
  3. FONT3820
  4. FONT38PP
  5. CDP
  6. FONT300
Coded fonts
  1. No file extension
  2. FONT3820
  3. FONT38PP
  4. CFT
  5. FONT300
Font character sets, 240-pel resolution
  1. No file extension
  2. 240
  3. FONT3820
  4. FONT38PP
  5. CFT
  6. CDP
Font character sets, 300-pel resolution
  1. No file extension
  2. 300
  3. FONT300
  4. CFT
  5. CDP
Outline fonts
  1. No file extension
  2. OLN
  3. FONTOLN
  4. CFT
  5. CDP
TrueType and OpenType fonts, CMRs, and data object resources Entire file name, including extension; comes from the Resources Access Tables (RATs) creaetd by the AFP Resource Installer. If a CMR or a data object RAT is altered, PSF must be restarted for the changes to take effect.
Form definitions
  1. No file extension
  2. FDEF3820
  3. FDEF38PP
  4. FDE
  5. FIL
GOCA (graphics) objects
  1. No file extension
  2. OBJ
  3. OBJECT
IOCA (IO image) objects
  1. No file extension
  2. OBJ
  3. OBJECT
MO:DCA Objects
  1. No file extension
  2. OBJ
  3. OBJECT
Overlays
  1. No file extension
  2. OVLY3820
  3. OVLY38PP
  4. OVL
  5. OLY
  6. OVR
Page definitions
  1. No file extension
  2. PDEF3820
  3. PDEF38PP
  4. PDE
Page segments
  1. No file extension
  2. PSEG3820
  3. PSEG38PP
  4. PSG
  5. PSE
Color mapping table
  1. No file extension
  2. SETUP
  3. SET
Presentation object container

For data object resources not installed in a Resource Access Table (RAT).

  1. No file extension
  2. DOR
Setup data
  1. No file extension
  2. SETUP
  3. SET
  4. COMSETUP
    Note:
  1. All file extensions must be in uppercase.
  2. If a file name includes a period (.), the file extension is that part of the file name that follows the period. For example, the file extension of the file name ARTWORK.PSEG3820 is PSEG3820.

The PSF DSS invokes line2afp whenever you submit a line-data or unformatted ASCII job. You can specify document-format=line-data or document-format=ascii on the pdpr command, or -odatatype=line or -odatatype=ascii on an AIX print command or the lprafp command, or you can allow InfoPrint to identify the data type.

For more information about the line2afp transform, see “Working with Transforms” in the InfoPrint Manager: Procedures manual that is appropriate for your operating system.