Hi All,
First off, this has helped solve a problem when trying to automate printing PDFs when called via a powershell script! - none of the ‘others’ quit correctly so caused timing issues with file locations, unwanted delays etc! So Bonus there!
One thing I would like to do is have a way to feed back any error messages from Sumatra when it is used to print a PDF eg not found printer, error due to something or another, you get the idea.
I’ve used the ‘start-process’ command within powershell to call the portable version of SumatraPDF.exe along with parameters to specify the name of the printer, the obvious file name to print and the -silent options to not let it get stuck if there is an error. I’ve also used the -wait option to get powershell to wait until the process completes (try THAT with adobe!!)
Although I’m also using powershells ‘-ErrorVariable’ for it to put messages and the like into a variable, I think this is to return errors that ‘start-process’ generates and not anything that is fed back from Sumatra.
Is this possible at all? Maybe a feature request if not?
Thanks again.
Wayne.