NickNaso / ghostscript4js

Ghostscript4JS binds the Ghostscript C API to the Node.JS world.
http://www.nacios.it
Apache License 2.0
66 stars 19 forks source link

Create executeSync method #8

Closed NickNaso closed 7 years ago

NickNaso commented 7 years ago

Create the executeSync method that have the responsability to parse and execute the ghostscript command.

function executeSync(GhostscriptCommand) {}

It's necessary to implement the Javascript and C++ binding for the method.

Use Nan:ThrowError to dispatch errors.

NickNaso commented 7 years ago

Added function library to best redirect stdio when use Ghostscript https://github.com/NickNaso/ghostscript4js/blob/master/src/ghostscript.c

NickNaso commented 7 years ago

Mehtod executeSync implemented as specified.