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

Ghostscript does not work, missing double quote. #19

Open
bestis opened this issue Apr 18, 2019 · 1 comment
Open

Ghostscript does not work, missing double quote. #19

bestis opened this issue Apr 18, 2019 · 1 comment

Comments

@bestis
Copy link

bestis commented Apr 18, 2019

There isn't equal amount of quotes. It doesn't work.

Fix for this is to edit pdf-officegen/lib/engine.js line 116:

-        const args = [...gsOpts, `-o "${imgPrefix}%d.png`, pdfPath]
+        const args = [...gsOpts, `-o "${imgPrefix}%d.png"`, pdfPath]
@bestis
Copy link
Author

bestis commented Apr 18, 2019

So if you are getting error:

Unhandled rejection (<Error: Command failed: gs -q -dQUIET -...>, no stack trace)

That's most likely the reason.

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

1 participant