Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when calling gs.executeSync #50

Closed
papuruth opened this issue Feb 19, 2020 · 2 comments
Closed

Error when calling gs.executeSync #50

papuruth opened this issue Feb 19, 2020 · 2 comments

Comments

@papuruth
Copy link

(index):125 Uncaught Error: Sorry error happened executing Ghostscript command. Error code: -100
at Object.executeSync (E:\Adstream\ReactElectronApp\QPPElectron\qpp\node_modules\ghostscript4js\lib\ghostscript4js.js:56)
at EventEmitter.ipcRenderer.on ((index):119)
at EventEmitter.emit (events.js:182)

ipcRenderer.on('convert-pdf', (evt, args) => {
        try {
          const version = gs.version();
          console.log(version);
          gs.executeSync(
            `-sDEVICE=pngalpha -o my.png -sDEVICE=pngalpha -r144 ${args}`
          );
        } catch (err) {
          throw err;
        }
      });

args: path of pdf file

@NickNaso
Copy link
Owner

Hi @papuruth,
we are working on a new updates for ghostscript4js. Cold you say if you obtain the error you reported after one single call of executeSync or maybe it is happen when you try to execute it multiple times?

@NickNaso NickNaso mentioned this issue Feb 24, 2020
3 tasks
@NickNaso
Copy link
Owner

Hi everybody,
I'm closing the issue because the release 3.2.0 should solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants