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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Printer-Related Files<br />

If you need a PPD file that is not among those shipped with <strong>Oracle</strong> <strong>Reports</strong>, you must<br />

do one of <strong>the</strong> following (in order of preference):<br />

■ Ask <strong>the</strong> printer vendor for <strong>the</strong> PPD file.<br />

■ Download <strong>the</strong> PPD file from Adobe's <strong>Web</strong> site<br />

■ Copy an existing PPD file and edit it<br />

■ Ask Adobe for <strong>the</strong> PPD specs and write <strong>the</strong> PPD file.<br />

The PostScript file only has <strong>the</strong> font information not <strong>the</strong> font metrics. <strong>Oracle</strong> <strong>Reports</strong><br />

refers <strong>to</strong> <strong>the</strong> AFM file installed for <strong>the</strong> font metrics information. The font vendors<br />

provide <strong>the</strong>se AFM files. <strong>Oracle</strong> <strong>Reports</strong> ships AFM files for some of <strong>the</strong> most<br />

commonly used fonts. The printer must have <strong>the</strong> required font installed in order <strong>to</strong><br />

correctly print <strong>the</strong> PostScript file generated by <strong>Oracle</strong> <strong>Reports</strong>.<br />

5.4.2.1 Local cus<strong>to</strong>mization of PPD files<br />

A PPD file is a static representation of <strong>the</strong> features of a printer. It contains default<br />

fac<strong>to</strong>ry settings. Once a printer is installed, features such as additional memory, paper<br />

trays, and fonts may be added <strong>to</strong> <strong>the</strong> device. The task of managing a device is a<br />

dynamic issue that requires keeping track of fonts downloaded <strong>to</strong> disk, error handlers,<br />

RAM-based fonts and procedure sets, default device setup, and so forth. This kind of<br />

device management is beyond <strong>the</strong> scope of PPD files. However, <strong>the</strong>re are some<br />

provisions for cus<strong>to</strong>mizing <strong>the</strong> information contained in PPD files <strong>to</strong> adapt <strong>the</strong>m <strong>to</strong><br />

local instances of printers or <strong>to</strong> specific applications when necessary.<br />

Instead of modifying <strong>the</strong> original PPD file, ano<strong>the</strong>r approach would be having a new<br />

file having <strong>the</strong> local cus<strong>to</strong>mization of certain parameters and refer <strong>to</strong> <strong>the</strong> primary file<br />

for <strong>the</strong> remaining information. The local cus<strong>to</strong>mization file must contain a reference <strong>to</strong><br />

<strong>the</strong> primary PPD file in this format:<br />

*Include: "filename"<br />

where filename is <strong>the</strong> name of <strong>the</strong> primary PPD file. This referencing allows a<br />

system administra<strong>to</strong>r <strong>to</strong> later replace <strong>the</strong> primary PPD file without forcing users <strong>to</strong> edit<br />

<strong>the</strong>ir local cus<strong>to</strong>mization files. A file referenced by <strong>the</strong> *Include keyword is treated<br />

as though it were in <strong>the</strong> including (local cus<strong>to</strong>mization) file.<br />

For example, suppose that <strong>the</strong> default.ppd file is defined as:<br />

*PPD-Adobe: "4.0"<br />

*Include: "datap462.ppd"<br />

*% Page definitions<br />

*DefaultPageSize: Letter<br />

…………………………<br />

*DefaultPageRegion: Letter<br />

The primary PPD file is datap462.ppd.<br />

Administra<strong>to</strong>rs should change <strong>the</strong> name of <strong>the</strong> included file <strong>to</strong> conform <strong>to</strong> <strong>the</strong>ir site's<br />

default printer type.<br />

When a local cus<strong>to</strong>mization file includes a primary PPD file, <strong>the</strong>re might be several<br />

instances of <strong>the</strong> same keyword in <strong>the</strong> composite file. Hence, <strong>the</strong> location of <strong>the</strong> primary<br />

file in <strong>the</strong> cus<strong>to</strong>mization file (beginning or end) is important and effects <strong>the</strong> changes<br />

made by <strong>the</strong> cus<strong>to</strong>mization file.<br />

Printing on UNIX with <strong>Oracle</strong> <strong>Reports</strong> 5-9

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

Saved successfully!

Ooh no, something went wrong!