01.02.2013 Views

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Printer-Related Files<br />

5.4.7.1.3 Adding a new font entry <strong>to</strong> PPD files On PostScript printers, <strong>Oracle</strong> <strong>Reports</strong> only<br />

allows you <strong>to</strong> use fonts known <strong>to</strong> be available on <strong>the</strong> printer. Since printers are rarely<br />

available for personal requests on multi-process operating systems, <strong>Oracle</strong> <strong>Reports</strong><br />

gets a complete list of fonts from <strong>the</strong> PPD file.<br />

When a new font is installed on <strong>the</strong> printer, a corresponding font entry needs <strong>to</strong> be<br />

added <strong>to</strong> <strong>the</strong> printer's PPD file. The format for a font entry is:<br />

*Font {fontname}: {encoding} "({version})" {charset}<br />

where<br />

{fontname} is <strong>the</strong> Adobe font face name as specified in PostScript.<br />

{encoding} is <strong>the</strong> PostScript encoding name.<br />

{version} is <strong>the</strong> FontInfo version number.<br />

{charset} is <strong>the</strong> Adobe character set.<br />

The encoding value has slightly different meanings depending on <strong>the</strong> font type. If<br />

<strong>the</strong> encoding cannot be determined, <strong>the</strong> value of encoding may be set <strong>to</strong> unknown.<br />

Fonts are usually re-encoded by applications <strong>to</strong> provide o<strong>the</strong>r encodings; <strong>the</strong> charset<br />

value for each font indicates which encodings are possible for that font. For more<br />

information, please refer <strong>to</strong> <strong>the</strong> PPD specification from Adobe.<br />

When new fonts are added <strong>to</strong> <strong>the</strong> printer, <strong>the</strong> matching AFM files must also be added<br />

<strong>to</strong> <strong>the</strong> font metrics direc<strong>to</strong>ry. <strong>Oracle</strong> <strong>Reports</strong> requires <strong>the</strong> AFM files <strong>to</strong> get <strong>the</strong> actual<br />

font attributes and properly place text on <strong>the</strong> printed page.<br />

Example<br />

Suppose you add a new font, CodedreineunBold, and need <strong>to</strong> edit <strong>the</strong> PPD file <strong>to</strong><br />

include <strong>the</strong> new font.<br />

1. In <strong>the</strong> PPD file, search for:<br />

*% Font Information<br />

2. For <strong>the</strong> new font, append <strong>the</strong> following at <strong>the</strong> end of <strong>the</strong> paragraph:<br />

*Font CodedreineunBold: Standard '(00.1001)" Standard ROM<br />

5.4.7.1.4 Overriding <strong>the</strong> printer tray setting The PostScript output generated by <strong>Oracle</strong><br />

<strong>Reports</strong> has <strong>the</strong> tray information embedded in<strong>to</strong> it. The PPD file defines <strong>the</strong> default<br />

tray <strong>to</strong> be used and is followed by <strong>the</strong> definitions of valid trays for <strong>the</strong> printer. To print<br />

<strong>to</strong> a different tray, <strong>the</strong> DefaultInputSlot entry in <strong>the</strong> PPD file must be updated.<br />

In <strong>the</strong> PPD file, you should find a section that lists <strong>the</strong> default tray and <strong>the</strong> valid input<br />

slots. The section typically starts with a line like this one:<br />

*OpenUI *InputSlot: <br />

The default tray entry looks like <strong>the</strong> following:<br />

*DefaultInputSlot: Lower<br />

The defined slots typically follow <strong>the</strong> default entry and look like <strong>the</strong> following:<br />

*InputSlot Upper/Multipurpose Tray: "<br />

...<br />

*InputSlot Lower/Paper Cassette: "<br />

The section ends with a line like <strong>the</strong> following:<br />

5-14 <strong>Oracle</strong> Application Server <strong>Reports</strong> Services <strong>Publishing</strong> <strong>Reports</strong> <strong>to</strong> <strong>the</strong> <strong>Web</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!