## Printer Device Driver

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

### Form Size IDs

Assign a unique ID for each unique paper size supported by your printer models.

Different printer models within a printer family can have different margins for the same paper size. To accommodate this variation, you can create multiple form definitions for the same paper size. For example, three form size IDs can exist for the size "letter". Each would represent "letter" with a different margin.

In addition, different margins can be used on one form size "letter" within the same printer model, depending on which tray or printhead is used.

The following example shows how to define five form size IDs:

    #define FORM_ID_LETTER           0  // Letter-sized form
    #define FORM_ID_LEGAL            1
    #define FORM_ID_A4               2
    #define FORM_ID_C10_ENVELOPE     3
    #define FORM_ID_LETTER_2         4  // Letter size with margins
                                        // different from FORM_ID_LETTER