Add/remove paper formats

Each paper size used by the printer driver can be edited, removed or new paper sizes can be created. To add or modify existing paper sizes developers or end users can use the “Edit paper list” option on the General Settings tab of the printer driver’s user interface. Using the paper list manager it is easy to add new papers, modify existing ones or delete (or just hide) unnecessary paper sizes.

 

All paper sizes are stored in the printer drivers INI file. After modifying the list of papers, developers can hide the “Edit paper list” button from the user interface. This way the end users are limited to use the papers that the developer made available for them.

 

 

All paper sizes are stored in the printer drivers INI file. After modifying the list of papers, developers can hide the “Edit paper list” button from the user interface. This way the end users are limited to use the papers that the developer made available for them.

 

Custom paper sizes are also can be added by editing the Printer Driver INI files.

 

The Printer Driver INI files can be edited with any text editor, and located in the following location:

 

32 bit

C:\Windows\System32\Spool\Drivers\w32x86

C:\Windows\System32\Spool\Drivers\w32x86\3

 

64 bit

C:\Windows\System32\spool\drivers\x64

C:\Windows\System32\spool\drivers\x64\3

 

In the Printer Driver INI file, the following modifications have to be made for adding a custom paper size:

 

Under the [Paper Size Definitions] bracket, make sure that the Number of Paper Sizes value is equal with the total number of paper sizes. By default, the printer driver has 177 predefined paper size, which means if one adds a custom paper size, the Number of Paper Sizes must be increased with 1:

 

Number of Paper Sizes=178

 

 

Under Paper177 paper definition (or under the last added paper definition), add the following lines:

 

; Custom paper size definition

; Available must be set to 1 to make the paper size available on the user interface.

Paper178 Available=1

; Title is the displayed name of the paper size on the user interface

Paper178 Title=My Custom Paper Size

; The width and height of the paper size, in the selected units.

Paper178 Width=200

Paper178 Height=800

Paper178 Units=MM

; The WindowsPaperCode is the unique identifier for the paper definition.

; Use this when selecting the default paper size under [Default Settings] Paper Size flag.

Paper178 WindowsPaperCode=336

 

Under the [Default Settings] bracket:

 

; The following flag sets the default paper size in the Printer Driver.

; Use the PaperXYZ WindowsPaperCode value of the newly added custom paper size

; to configure the paper size as the default.

Paper Size=336

 

Once the custom paper size is added to the Printer Driver INI files, the Restore Defaults button must be pressed on the Printer Driver Printing Preferences, to load the new settings from the INI file.