uifont.ali Printer-Related Files

10-14 Publishing Reports to the Web with Oracle Reports Services 1. Modify the default page from Letter to A4 in the following sections: Page definitions DefaultPageSize: A4 PageSize A4: These entries set up the frame buffer. Usually used with manual feed. DefaultPageRegion: A4 PageRegion A4: A4 These provide the physical dimensions of the paper by keyword DefaultPaperDimension: A4 PaperDimension A4: 595 842 2. Add the margin definition in the following sections: Imageable writable areas for each page size, in pixels DefaultImageableArea: A4 ImageableArea A4: 2 2 593 840

10.4.7.1.3 Adding a new font entry to PPD files On PostScript printers, Oracle Reports only

enables you to use fonts known to be available on the printer. Since printers are rarely available for personal requests on multiprocess operating systems, Oracle Reports gets a complete list of fonts from the PPD file. When a new font is installed on the printer, a corresponding font entry needs to be added to the printers PPD file. The format for a font entry is: Font {fontname}: {encoding} {version} {charset} where {fontname} is the Adobe font face name as specified in PostScript. {encoding} is the PostScript encoding name. {version} is the FontInfo version number. {charset} is the Adobe character set. The encoding value has slightly different meanings depending on the font type. If the encoding cannot be determined, the value of encoding may be set to unknown. Fonts are usually re-encoded by applications to provide other encodings; the charset value for each font indicates which encodings are possible for that font. For more information, please refer to the PPD specification from Adobe. When new fonts are added to the printer, the matching AFM files must also be added to the font metrics directory. Oracle Reports requires the AFM files to get the actual font attributes and properly place text on the printed page. Example Suppose you add a new font, CodedreineunBold, and want to edit the PPD file to include the new font. 1. In the PPD file, search for: Font Information 2. For the new font, append the following at the end of the paragraph: Note: All PPD entries are case sensitive. Printing on UNIX with Oracle Reports 10-15 Font CodedreineunBold: Standard 00.1001 Standard ROM

10.4.7.1.4 Overriding the printer tray setting The PostScript output generated by Oracle

Reports has the tray information embedded into it. The PPD file defines the default tray to be used and is followed by the definitions of valid trays for the printer. To print to a different tray, the DefaultInputSlot entry in the PPD file must be updated. In the PPD file, you should find a section that lists the default tray and the valid input slots. The section typically starts with a line like this one: OpenUI InputSlot: PickOne The default tray entry looks like the following: DefaultInputSlot: Lower The defined slots typically follow the default entry and look like the following: InputSlot UpperMultipurpose Tray: ... InputSlot LowerPaper Cassette: The section ends with a line like the following: CloseUI: InputSlot You can set DefaultInputSlot to be any of the values in the list of defined slots.

10.4.7.2 Editing HPD files for PCL printing

In some cases, you may need to change certain attributes in you HPD file. The sections that follow describe some of the attributes that you would commonly want to change: ■ Changing the paper size ■ Adding a new font entry

10.4.7.2.1 Changing the paper size For example, to change the papersize to A4, add the

following to the HPD file used: defaultpaper=A4

10.4.7.2.2 Adding a new font entry As with PostScripts AFM files, every HP font must

have a TFM file in order for Oracle Reports to use it. The font vendor should provide TFM files. You should add new fonts to the HPD file when you install them. You must specify the following settings in the HPD file for any new font: FONT={fontname} {fontname} is a descriptive name for the font tfm={tfm-filename} {tfm-filename} is the base filename for TFM file

10.5 Enhanced Printing on Linux Using CUPS

Common UNIX Printing System CUPS is the default printing system on most Linux distributions. This section describes how to set up CUPS for printing from Reports Server. Note: The font name entries in HPD files must be unique.