How to create a virtual printer in Windows?

前端 未结 6 2053
盖世英雄少女心
盖世英雄少女心 2020-12-02 09:19

I want to create a virtual printer driver for Windows. How and where can I start properly? The WDK has some printing drivers examples that do not seems a good introductory.

6条回答
  •  旧时难觅i
    2020-12-02 09:38

    When I did it (which about 12 years ago) I started with the postscript driver sample, replaced all the postscript-specific stuff (in my case, to write to a bitmap instead of generating postscript commands).

    I also wrote a custom print monitor (the driver writes to the spooler, which write to a monitor): my monitor wrote to a file instead of e.g. to the parallel port.

    However, printer driver architecture and/or the set of sample drivers may have changed since then.

提交回复
热议问题