mfilemon icon indicating copy to clipboard operation
mfilemon copied to clipboard

Redirect from PostScript virtual printer using GhostScript

Open sergeolkhovik opened this issue 5 months ago • 0 comments

I have Canon LBP 2900 GDI printer but want to print on it from non-Windows computers in my home LAN. I found your nice tool but cannot get all this chain working. I created a virtual printer like in your 'sample usage' section with these settings:

07-09-2024 22:07:08.646  [INFO]  Output path:         C:\var\mfilemon
07-09-2024 22:07:08.646  [INFO]  File pattern:        %Y_%m_%d_%i.pdf
07-09-2024 22:07:08.646  [INFO]  Overwrite:           true
07-09-2024 22:07:08.646  [INFO]  User command:        C:\usr\gs\gs10.03.1\bin\gswin64c.exe -sDEVICE=mswinpr2 -dNOPAUSE -dBATCH -sOutputFile="%printer%Canon LBP2900" -f -
07-09-2024 22:07:08.646  [INFO]  Execute from:        C:\var\mfilemon
07-09-2024 22:07:08.646  [INFO]  Wait termination:    false
07-09-2024 22:07:08.646  [INFO]  Wait timeout:        0
07-09-2024 22:07:08.646  [INFO]  Use pipe:            true
07-09-2024 22:07:08.646  [INFO]  Run as:              .\

And when I simply try to print a test page on this virtual printer I get print job stuck, cannot remove it and even cannot change printer or port properties. The only thing that helps is just to remove the printer and create new. In addition I just created a simple PS printer (i.e. filled in output path and file pattern, no user command etc), shared it and printed a test page from another client - now I have a .ps file. Then I simply ran that command (C:\usr\gs\gs10.03.1\bin\gswin64c.exe -sDEVICE=mswinpr2 -dNOPAUSE -dBATCH -sOutputFile="%printer%Canon LBP2900" -f test.ps) and got the document printed! I tried specifing my admin account with the password - still have no success at all. Also I disabled UAC but that didn't help. Ended up creating a virtual PDF printer and priting manually all those saved files via RDP session. Not useful solution. So can you please help figuring out what's wrong with this? I don't see anything useful in mfilemon.log file (debug level). This is just a Windows 10 VM inside Proxmox with USB printer passed through.

sergeolkhovik avatar Sep 09 '24 18:09 sergeolkhovik