Capture stdout from ghostscript
mhirsch opened this issue · 3 comments
Is there an easy way to capture stdout
from the ghostscript process? Some drivers, for example tiffsep
produce meaningful output in stdout
.
Thanks
Maybe I could put the the stdout
in the second parameter of the callback function (function (codeError, stdout)
) ? What do you think ?
It seems like your exec
function most closely follows the semantics of node's child_process.execFile
in that it returns all results after the process exits. I would follow the same pattern that child_process
does here. Thanks for considering this!
It will be more complicated than expected to do this. The gsapi_set_stdio
function takes as parameter a function pointer which forces me from the instance of my class to use a static method of my class and not a method of my object. 🤔