DPI Resolution in the GPD file

Enrico Di Zenobio 1 Reputation point
2021-04-26T15:20:54.77+00:00

I write a simple UNIV driver for our printer, based on Microsoft bitmap sample driver.

I insert in the GPD file two dpi resolution, 180 and 360 DOTS_PER_INCH
They works fine.

Now I need to add a 600 dpi feature, but even if I read all the documentation it absolutely doesn't work.

Doc say to calculate the LCM of all dpi settings so for the actual two (180,360) the parameter is :

*MasterUnits: PAIR(360, 360)

Following the doc to add a new 600 dpi the MasterUnits should be :

*MasterUnits PAIR(1800, 1800)

But whatever value I put in the MasterUnits , after building the driver I always obtain an error when you try to have the printer's properties.

I have no more ideas, I try with 720 dpi that is the twice of 360 but with no results at all. This is the first part of my GPD :

*ResourceDLL: "unires.dll"
*PrinterType: PAGE
*MaxCopies: 99
*PrintRate: 16
*PrintRateUnit: PPM
*PrintRatePPM: 16
*ResourceDLL: "unires.dll"
*PrinterType: PAGE
*MaxCopies: 99
*PrintRate: 16
*PrintRateUnit: PPM
*PrintRatePPM: 16
*ResourceDLL: "PrintUI.dll"

*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *Name: "360 x 360" =DOTS_PER_INCH
        *DPI: PAIR(360, 360)
        *TextDPI: PAIR(360, 360)
        *MinStripBlankPixels: 32
        EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
        *SpotDiameter: 100
        *Command: CmdBeginRaster { *Cmd : "" }
        *Command: CmdEndRaster { *Cmd : "" }
        *Command: CmdSendBlockData { *Cmd : "" }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.7
            *Cmd: ""
        }
    }
    *Option: Option2
    {
        *Name: "180 x 180" =DOTS_PER_INCH
        *DPI: PAIR(180, 180)
        *TextDPI: PAIR(180, 180)
        *MinStripBlankPixels: 32
        EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
        *SpotDiameter: 100
        *Command: CmdBeginRaster { *Cmd : "" }
        *Command: CmdEndRaster { *Cmd : "" }
        *Command: CmdSendBlockData { *Cmd : "" }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.7
            *Cmd: ""
        }
    }   
*Option: Option3
    {
        *Name: "600 x 600" =DOTS_PER_INCH
        *DPI: PAIR(600, 600)
        *TextDPI: PAIR(600, 600)
        *MinStripBlankPixels: 32
        EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
        *SpotDiameter: 100
        *Command: CmdBeginRaster { *Cmd : "" }
        *Command: CmdEndRaster { *Cmd : "" }
        *Command: CmdSendBlockData { *Cmd : "" }
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.7
            *Cmd: ""
        }
    }   
}
Windows for business | Windows Server | User experience | Print jobs
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2021-04-28T08:31:39.777+00:00

    Hi,

    I am doing some research for current issue, thanks for your waiting.

    Best Regards

    0 comments No comments

  2. Anonymous
    2021-05-10T14:06:56.463+00:00

    Hi, I am sorry. I'm still in a middle of this work. I will update it ASAP.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.