Electronjs 7x view job printer

Hello Guys!

I’m need know what job is fail, success or stoped in my printer.
I’m using OS windows and electronjs 7x and silent print.
How i can do this in electronjs?

My code:

https://pastebin.com/8xEuFPa4