CMS Redbook Overview

Page 235

Example 9-11 Image map file <IMAGE position:(5.250in,0.613in) size:(0.667in,0.800in)> <IMAGE_END> <IMAGE position:(0.863in,8.483in) size:(2.400in,0.667in)> <IMAGE_END> <IMAGE position:(3.596in,8.550in) size:(2.633in,0.700in)> <IMAGE_END> <IMAGE name:(S1PSEG01) position:(6.162in,8.483in) size:(2.067in,0.604in)> <IMAGE_END>

The image information for each image is in pairs. The first line contains the page-segment resource name (only if available), the position value in inches, and size values in inches. The second line ends the entry for the image. The first value for the position and size gives the horizontal dimension and the second gives the vertical dimension. The position measurements are for the upper, left-hand corner of the image relative to the upper, left-hand corner of the page. The copy of the lines in the output file (imagemap.out in this example) is used to create the image-map configuration file (imagemap.cfg by default). The image information in the configuration file is used to identify the images in the AFP document during the transform process. Each IMAGE tag along with its corresponding IMAGE_END tag defines a single image information entry in the configuration file. Now it is possible to remove, substitute, or add images.

Removing images If no other information is given as part of an entry in the image map configuration file, such as extra lines between the image position and size definitions and the IMAGE_END tag, the entry is considered empty and the image is removed from the transformed PDF files. The image information that the transform program generates is empty by default.

Substituting existing images To use an existing image, add IMAGE definition parameters between the starting <IMAGE ...> and ending <IMAGE_END> lines of an image information entry in the configuration file. For example, with Example 9-12, when the first image is encountered, it is substituted with logo1.jpg, and when the second image is encountered, it is substituted with logo2.jpg.

268

Content Manager OnDemand Guide


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.