11.5 Generating a Barcode PDF File

This section outlines the steps involved in generating a PDF file with barcode information. Before using the font features covered in this section, refer to Table 11-3 to determine which feature best suits your application needs.

11.5.1 Font Embedding

The steps involved in generating a barcode PDF file using the font embedding feature are as follows:

  1. Set the REPORTS_PATH environment variable to the font directory containing the Type1 font.

  2. Open the uifont.ali file and include the following under the font embed [PDF:Embed] section.

    Note:

    The uifont.ali file is located in the following directory on Windows and UNIX:
    • $DOMAIN_HOME/config/fmwconfig/components/ReportsToolsComponent/<reports_tools_name>/guicommon/tk/admin

    Example

    [ PDF:Embed ]
    SAdHC39a = "SAdHC39a.pfm SAdHC39a.pfb"
    
  3. Create a report having Barcode data and set its font to the one specified in the example.

  4. Run a report with DESTYPE=FILE DESFORMAT=PDF.

11.5.2 Font Subsetting

The steps involved in generating a barcode PDF file using the font subsetting feature are as follows:

  1. Set the REPORTS_PATH environment variable to the directory containing the TrueType font. For example, C:\WINNT\Fonts.

  2. Open the uifont.ali file and edit the [PDF:Subset] section to specify the TrueType font name.

    Note:

    The uifont.ali file is located in the following directory on Windows and UNIX:
    • $DOMAIN_HOME/config/fmwconfig/components/ReportsToolsComponent/<reports_tools_name>/guicommon/tk/admin

    Example

    [ PDF:Subset ]
    SAdHC39a = "SAdHC39a.ttf"
    
  3. Create a report having barcode data and set it to the font specified in the example.

  4. Run a report with DESTYPE=FILE DESFORMAT=PDF.