Facing issue with paper size with bitmap driver

I am working on a bit map printer driver. I am taking reference from the bitmap driver provided in wdk sample. I am able to install the driver and able to create a bit map image. But I need to set the custom size but I don’t know how I can do. I have read and found that using the GPD file I can fix size. Please do the needful I am trying to complete this task from last 5 days.

@pritosh_mishra said:
I am working on a bit map printer driver. I am taking reference from the bitmap driver provided in wdk sample. I am able to install the driver and able to create a bit map image. But I need to set the custom size but I don’t know how I can do. I have read and found that using the GPD file I can fix size. Please do the needful I am trying to complete this task from last 5 days.

Anybody have the solution, I am still working on this issue. Please help me to resolve this issue.