## Printer Device Driver

[prev][next][parent][TOC]

### Importing a New PPD (Using PIN.EXE)

PIN.EXE is a utility to add new or upgrade device support in the Postscript driver by importing PPD files. The PPD file is usually created and provided by your PostScript printer manufacturer.

Syntax:

           PIN.EXE

Currently, the only supported command is "PPD".

Syntax of command 'PPD' arguments:

           PIN.EXE PPD

The first argument is the directory path where PPD files to be imported are stored. The second argument is the path to the driver (including the driver file name) where the PPD files will be imported.

One or multiple PPDs can be imported at once.

*** Suggested usage scenario ***

1) Create directory where you will store all of the PSCRIPT files.

             >mkdir d:\PSDRIVER

2) Put PIN.EXE in this directory.

              >copy PIN.EXE d:\PSDRIVER

3) Create 3 subdirectories in d:\PSDRIVER directory.

              >cd d:\PSDRIVER

              >mkdir BAK

              >mkdir PPD

              >mkdir OUT

The BAK directory will be the backup driver files - the original, unmodified driver. Copy the unmodified driver files here.
The PPD directory will contain the PPD files for your new printer devices that you want imported into the driver.
The OUT directory will be where you build your driver which contains the new devices to be imported for immediate use or distribution.

To import new devices into the driver, perform the following steps:

4) Clean the output directory.

              >del OUT\*

5) Copy the unmodified driver files from the backup (BAK) to the OUT directory.

              >copy BAK\* OUT\

6) Run the PIN utility to import the PPDs.

              >PIN.EXE PPD PPD\ OUT\pscript.drv

"PPD" is command that tells PIN.EXE what to do.
"PPD\" is path to directory with the source PPD files.
"OUT\pscript.drv" is the driver file name where the PPDs are going to be imported into.

7) The driver in the OUT\ directory now will have the imported PPDs!

You can install it or distribute it to users.

IMPORTANT: After the resources are imported to the printer driver, you can't just 'add' on top of that. If you add a new PPD to the directory and want to make use of it, you have to start with a "fresh" driver and import all of the devices at once, as previously done. It is required that you delete all of the files in the output directory (step 3) and copy the driver from the backup directory (step 4) to perform device importing - every time.