Font Metrics Files Printer-Related Files

Printing on UNIX with Oracle Reports 10-13 DefaultPageRegion: A4 DefaultImageableArea: A4 DefaultPaperDimension: A4

10.4.7.1.2 Changing the printer margin settings To change the margins, you must modify

the ImageableArea section in the PPD file. ImageableArea provides the bounding box of the area in which the printer may print for the page size named mediaOption. There will be one statement for each named page size supported by the device. DefaultImageableArea provides the mediaOption name of the default imageable area. Since there can be only one default page size, this value should be the same as the value of DefaultPageSize, DefaultPageRegion, and DefaultPaperDimension. The syntax for defining imageable area is as follows: ImageableArea mediaOption: llx lly urx ury DefaultImageableArea: mediaOption | Unknown ll stands for lower left corner and ur for upper right corner. The bounding box value of ImageableArea is given as four real numbers, representing the x and y coordinates of the lower left and upper right corners of the region, respectively, in the PostScript language default user space coordinate system. The x and y axes of a given page size correspond to the x and y axes of that page size in the PaperDimension entry. The imageable area is defined as the part of the page where the printer may actually make marks. On some printers, the imageable area of a given page size varies as a result of the current resolution, amount of memory, the direction of paper feed, and other factors. In PPD files where the imageable area of a given page size can vary, the imageable area recorded for that page size will be the intersection of all possible imageable areas for that page size. This formula ensures that the available imageable area is never smaller than that shown in the PPD file and all marks made within the imageable area will be visible. It does, however, also mean that the imageable area in the current configuration might actually be larger than the imageable area shown in the PPD file. The following table contains the option keywords currently registered for mediaOption, which designates a given page size on a device: Example To change the margins of an A4 page in the default.ppd, you would perform the following steps: Table 10–4 mediaOption Keywords mediaOption Paper Size Size pts Size mm Size inches Letter 612 792 215.9 279.4 8.5 11 Legal 612 1008 215.9 355.6 8.5 14 Ledger 1224 792 431.8 279.4 17 11 Tabloid 792 1224 279.4 431.8 11 17 A3 842 1191 297 420 11.69 16.54 A4 595 842 210 297 8.27 11.69 A5 420 595 148 210 5.83 8.27 B4 729 1032 257 364 10.12 14.33 B5 516 729 182 257 7.17 10.12 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.