Sumatra Not printing command line but not failing either #4551
Replies: 4 comments 3 replies
-
SumatraPDF literally hands off images of pages to Windows without any significant feedback in the downstream process. For error message you need to watching the cmd console where a popup might appear.. There are several likely points of failure as PDF print needs the GDI/GUI/GPU system to render into the graphics processor and some server configurations dont expect / allow user based graphical applications. There is also the User Authorisation aspect as SumatraPDF need to be able to talk to itself via backchannels and those may not be open or unrestricted in a server. Use Ghostscript for served print handling it only needs a minimal graphics processor interaction and has comprehensive error feedback. |
Beta Was this translation helpful? Give feedback.
-
Probably because you're running it from a service and that's not supported. You can try to get / provide us with more detail:
If you post the logs here I'll have more data to maybe diagnose the issue. |
Beta Was this translation helpful? Give feedback.
-
That is the log output PrintToDevice: finished ok For Prerel i cannot get a -log to output a file but -console shows the same as stable -log output My hope was to run a sql agent job to launch powershell script but i cannot even get it to work within PS or CMD on that machine even though i mine it works fine. there might be some network restrictions or other dependancies that im not aware that it needs. its running sql2014 so machine is a bit older. I will see if our newer sql server also has this issue |
Beta Was this translation helpful? Give feedback.
-
Thanks for that Krzysztof, This does seem print driver-related (Event logs seem to hint at that though not explicitly) i will add the printer locally with the driver and see if that resolves it. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
I have a weird issue, when prinitng from my desktop powershell i can print to the print server using this syntax
SumatraPDF-3.5.2-64.exe -print-to "\printserver\printername" -print-settings noscale "pathtofile\filename.pdf"
but when i run the same thing on Powershell on our SQL server it does not error and the -console shows exit code 0 but nothing comes out of the printer. I'm using the portable version on both machines with files that both machines can access.
i don't know where else i can see what might be causing the issue
Beta Was this translation helpful? Give feedback.
All reactions