10.6 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 10-4 to determine which feature best suits your application needs.

10.6.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:

    • ORACLE_INSTANCE\config\FRComponent\
      frcommon\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.

10.6.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:

    • ORACLE_INSTANCE\config\FRComponent\
      frcommon\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.