Compression PDF Features Included in Oracle Reports

Using PDF in Oracle Reports 11-5 ■ In Acrobat Reader 6.0 and later, choose File Document Properties Fonts. In prior releases, beginning with Acrobat Reader 3.0, choose File Document Info Fonts . Verify that the aliased font has been added to the list. If it is not included, then font aliasing did not occur. The fonts were not found or the entry in the uifont.ali file is incorrect. ■ The fonts specified for the report are available on the machine where the report will be viewed. ■ The [PDF] section name in the uifont.ali file has not been modified as Oracle Reports parses the file for the section name. ■ The version of the Adobe Acrobat Reader used for viewing is 3.0 or higher, as required for multibyte character reports to display properly.

11.2.2.2 Font Subsetting

With font subsetting, the PDF file includes the font information needed to render the PDF, regardless of the availability of that font on the machine used to view the report. PDF font subsetting works for single byte, multibyte, and Unicode fonts and is the preferred method of creating multibyte reports. When you subset a font in a PDF file, the font information is embedded into the PDF output for only those characters that are needed for the report output.

11.2.2.2.1 Setup

Before using font subsetting, you must: ■ Include the font file paths in the REPORTS_PATH environment variable. Oracle Reports looks for fonts in the path specified in the REPORTS_PATH environment variable when generating a PDF file. ■ Include the font subsetting entries in the uifont.ali file. Oracle Reports subsets the fonts only when the font entries listed in the uifont.ali file exist in the PDF file being generated. The section for font subset in the uifont.ali file is [PDF:Subset] and the entry is: [PDF:Subset] font_name = font_file_name where font_name is the font name, which must be enclosed in quotes if it contains more than one word. Note: You can modify the PDF file if you have: 1. The fonts used in the report installed on your machine. 2. A PDF writer. Note: The uifont.ali file is located in the following directory: ORACLE_ INSTANCE\config\FRComponent\frcommon\guicommon\tk\ admin 11-6 Publishing Reports to the Web with Oracle Reports Services font_file_name is the font file name, which must always be enclosed in quotes, and is case-sensitive. If it does not exactly match the existing font file name, Oracle Reports generates a REP-1924 error. The font files can be saved in any folder; for example, ORACLE_ INSTANCEreportsfont_folder. The font files path is added by default to the REPORTS_PATH environment variable. Example 1 [PDF:Subset] Arial = Arial.ttf To use TrueType fonts in a TrueType Collection .ttc file, the syntax for the entry in the [PDF:Subset] section in uifont.ali is: [PDF:Subset] font_name = ttc_file_name[,table_directory_number] where font_name is the font name, which must be enclosed in quotes if it contains more than one word. ttc_file_name is a TrueType Collection file name. table_directory_number is the Table Directory number for the TrueType font in a TrueType Collection file, using a zero-based index for example, MS PGothic = msgothic.ttc,1 indicates that Oracle Reports should use the second font in the TrueType Collection file. If the table_directory_number is omitted or if you supply an invalid value, Oracle Reports will always subset the first font program in the TrueType Collection file. Example 2 [PDF:Subset] MS PGothic = msgothic.ttc,1 MS UI Gothic = msgothic.ttc,2 Table 11–3 shows the font name and Table Directory number values for common East Asian TrueType Collection files on the Windows platform. Note: The font_file_name is not the font name displayed in Oracle Reports Builder. Table 11–3 Common East Asian TrueType Collection Files on the Windows Platform TTC File Name Font Name Table Directory Number batang.ttc Batang BatangChe Gungsuh GungsuhChe 1 2 3 gulim.ttc Gulim GulimChe Dotum DotumChe 1 2 3