Skip to content

feat: add mswinpr2 direct print support for Windows#54

Open
exoego wants to merge 3 commits intotalesluna:masterfrom
exoego:mswinpr2
Open

feat: add mswinpr2 direct print support for Windows#54
exoego wants to merge 3 commits intotalesluna:masterfrom
exoego:mswinpr2

Conversation

@exoego
Copy link
Copy Markdown
Contributor

@exoego exoego commented Mar 23, 2026

On Windows, the existing Ghostscript converters (ps2write, png16m, etc) convert PDF to an intermediate format (PostScript, PNG, TIFF) and sent it as RAW data via Winspool.
However, non-PostScript printers (like relatively-old home inkjet printers or label printers) can not interpret RAW PostScript/image bytes, so they silently discard the data.

mswinpr2 device can bypass Winspool RAW entirely -- Ghostscript renders through GDI, which goes through the printer driver.
The printer driver converts it into the printer's native format (PCL, ESC/P, or such proprietary raster command), so it basically works with any Windows printer.

I confirmed this worked with my app and printer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant