Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Generating printer drivers

A printer driver is implemented as two files:


The .pdr file

A .pdr file is a stream store, and is generated by running the pdrtran tool over a text file containing printer specification data. The source text file has file extension .pd. It contains:

A .pdr can contain more than one model because different models are often based on different combinations of the same typefaces. This allows character width tables (which make up the bulk of the data stored) to be shared.

Different .pdr files can reference the same .pdl.

[Top]


The .pdl file

A .pdl file is a plugin DLL. The ordinal 1 function exported from the DLL creates and returns a pointer to an instance of a CPrinterDevice derived class.

The Symbian OS loads both .pdr and .pdl files from /system/printers.