Merging Resources

Resource merging is useful when splitting, sorting, or merging files. For example, if Enrichment is merging two input files that both have font FONT1234 as a resource, Enrichment can identify which instance of FONT1234 to use in the merged output. If Enrichment determines that both fonts are the same, the first font is used and the second one is discarded.

To enable resource merging, use these Enrichment language elements:

<RESOURCESCAN> This tag enables resource management. Enrichment scans each input record, reconciling resources with duplicate names and creating new unique names if resources are different.
<RESOURCEREPLACE> This tag specifies whether or not Enrichment should remove and/or replace inline resources for a specific output file.
%%NUM_FONTS This system variable indicates the number of fonts on a page.
GETFONT This function returns the AFPDS font whose local ID in the MCF record for the page matches the requested font number. This function can only be used in the PAGE section of the rule file.

For complete information on <RESOURCEREPLACE>, <RESOURCESCAN>, %%NUM_FONTS, and GETFONT, see the Enrichment Language Reference Guide.