The search order for AFP resources
This section describes the order and the conditions on which InfoPrint searches for AFP resources:
- For fonts, paths specified by the -osrchfontlib keyword on the enq, lp, qprt, or lprafp command
- Paths specified by the -oreslib keyword on the enq, lp, qprt, or lprafp command
- The path specified by the resource-context-user document attribute.
- The paths specified by one of these document attributes, depending on the type of
resource:
- resource-context-font
- resource-context-form-definition
- resource-context-overlay
- resource-context-page-definition
- resource-context-page-segment
Note: When one of these document attributes contains a value, InfoPrint ignores any location specified by the same attribute of a default document object if one is used with the job. - The path specified by the resource-context document attribute.
- The path specified by the PSFPATH environment variable.
If you are using OpenType Fonts, you must allow the InfoPrint Fonts product to install its resource access table for keeping track of these fonts in the default directory. On an InfoPrint Manager Windows server, if you change the location of this table from the folder where it was installed, you can update the global search path on your Windows system with the global resource path for these fonts.
- The paths specified by the resource-context attributes of the actual destination.
- For fonts, the directory where your fonts are installed.
Once a resource is located, the search ends, and the located resource is used to process the job, as long as the user can access the resource. If InfoPrint Manager ultimately cannot find a required resource, it prints an error message advising you of the missing resource. InfoPrint Manager reports that the job completed successfully.
If the only AFP resources you use are the AFP resources that shipped with InfoPrint Manager, there is no need to use resource-context objects. All of your resources are located automatically because these resources reside in the reslib, fontlib, and font directories described above. If, on the other hand, you have custom AFP resources, make sure that you do not store them in the reslib, fontlib, or font directories listed. Any custom resources stored in these locations might be corrupted by installing, uninstalling, or servicing the software. Store any custom AFP resources in a directory outside these locations and use resource-context objects to provide access to them.
When InfoPrint Manager puts together the total of all resource contexts for a particular resource type, InfoPrint Manager tries this list of extensions in order while searching each directory for a particular resource. For example, InfoPrint Manager is searching for a 300–pel raster font named C0H20000 and these conditions are true:
- Document attributes are set to
resource-context-font=\myfonts
resource-context=\all_resources
- The $PSFPATH environment variable has not been set.
- The resource-context-font actual destination attribute has not been set.
x:\myfonts\C0H20000.300
x:\myfonts\C0H20000.FONT300
x:\myfonts\C0H20000
x:\all_resources\C0H20000.300
x:\all_resources\C0H20000.FONT300
x:\all_resources\C0H20000
- With InfoPrint Manager:
- The
/usr/lpp/psf/reslib
directory. - For fonts, the
/usr/lpp/afpfonts
directory. - For fonts, the
/usr/lpp/psf/fontlib
directory.
- The
If InfoPrint Manager cannot find the resource in any of the paths, it stops the job and prints an error message at the end of the job.