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 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.
The line2afp command searches for resources in this order:
- Inline resources.
- 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).
- File names matching the object name in paths specified by the userlib option (AFP resources, except TrueType and OpenType fonts).
- RAT entries in these system paths:
- Paths specified by the objconlib option.
- Paths specified by thereslib option.
- File names matching the object name in these system paths:
- Paths specified by the objconlib option.
- Paths specified by the reslib option.
- Paths specified by the psfpath environment variable.
- With AIX or Linux:/usr/lpp/psf/reslib
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 |
|
Code pages |
|
Coded fonts |
|
Font character sets, 240-pel resolution |
|
Font character sets, 300-pel resolution |
|
Outline fonts |
|
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 |
|
GOCA (graphics) objects |
|
IOCA (IO image) objects |
|
MO:DCA Objects |
|
Overlays |
|
Page definitions |
|
Page segments |
|
Color mapping table |
|
Presentation object container
For data object resources not installed in a Resource Access Table (RAT). |
|
Setup data |
|
|
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.