AFP > Images and overlays > Mapping images, overlays and color profiles > Creating a map file

Creating a map file
You create a map file that describes how to map original images, overlays and color profiles to external resources. Then you add the map file to the AFP driver configuration. The map file settings override the corresponding AFP driver GUI settings for images, overlays and color profiles.
To create a map file
1
2
3
4
5
Syntax – Mapping an image/overlay/color profile to an external resource
The following syntax is used to map an image, overlay or color profile to an external resource.
Item TAB Type TAB Name TAB Mode TAB Location
Syntax – Specifying a color profile for a mapped image
The following syntax is used to map an image, and map a color profile for that image.
Item TAB Type TAB Name TAB Mode TAB Location COLORPROFILE TAB Name TAB Mode TAB Location
 
Parameters
Item
Type
PSEG – for images.
OVERLAY – for overlays.
COLORPRFOFILE – for color profiles.
Name
The AFP resource name, for example 01SLIPEN. Image resources have the prefix S1, and overlay resources have the prefix O1. The resource name and prefix for images and overlays can be up to eight characters long.
Mode
Location
The path to the directory with the image/overlay/color profile resource. For example, AFPRESOURCES/01SLIPEN.OVL
Used only if Mode is INCLUDE or EXPORT.
If Mode is INCLUDE, the resource is retrieved from this location. If Mode is EXPORT, the resource is exported to this location.
Type
COLORPROFILE
This parameter is optional. It is only used to specify a color profile for an image that is mapped to an existing AFP resource.
Name
This parameter is optional. It is only used to specify a color profile for an image that is mapped to an existing AFP resource.
Mode
This parameter is optional. It is only used to specify a color profile for an image that is mapped to an existing AFP resource.
Location
This parameter is optional. It is only used to specify a color profile for an image that is mapped to an existing AFP resource.
To add the map file to the AFP driver configuration
The map file you create is exported from the resource set to <export>\data\tables. You must specify this path when you configure the device driver settings.
1
2
Select Job Begin and Device Driver Settings.
3
In .Map file (Resource), enter the path to the map file, for example:
data\tables\resourcemap
 
Examples
Example 9
In this example, the image Logo.gif and the overlay Slip.lxf are used in PageOUT. The image and overlay are added to the AFP data stream file using Include mode. The image resource is retrieved from the file S1LOENG.PSG, and is named S1LOENG. The overlay resource is retrieved from the file O1SLIPEN.OVL, and is named O1SLIPEN. Both resource files are stored in the resource directory AFPRESOURCES in the Export directory of the Project.
The map file looks like this:
//!CodePage UTF8!
Slip    OVERLAY    01SLIPEN    INCLUDE    AFPRESOURCES/01SLIPEN.OVL
Logo    PSG        S1LOEN      INCLUDE    AFPRESOURCES/S1LOEN.PSG
 
Example 10
In this example, the image logo references a color profile named ICCColorProfile45x. The color profile is added to the AFP data stream file using Include mode. The color profile is retrieved from the file ICCColorProfile45T.icc, which is located in the Project export directory called AFPRESOURCES.
The entry in the map file looks like this:
//!CodePage UTF8!
logo    COLORPROFILE     ICCColorProfile45x    INCLUDE    AFPRESOURCES/ICCColorProfile45T.icc
 
Example 11
In this example, the image Logo is mapped to the file 1LOENG.PSG, which is located in the directory called AFPRESOURCES in the Project Export directory. The image is added to the AFP data stream file using Reference mode. The image references a color profile named ICCColorProfile45x.
The entry in the map file looks like this:
//!CodePage UTF8!
Logo    PSG    S1LOEN    INCLUDE    AFPRESOURCES/S1LOEN.PSG COLORPROFILE   		ICCColorProfile45x   REFERENCE
 
OpenText StreamServe 5.6 Updated: 2013-03-01