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

GPL Ghostscript 9.52: Unrecoverable error #15

Open
donniekerr opened this issue May 15, 2020 · 1 comment
Open

GPL Ghostscript 9.52: Unrecoverable error #15

donniekerr opened this issue May 15, 2020 · 1 comment

Comments

@donniekerr
Copy link

Any ideas on what might be causing this error?
Something went wrong: Error reading pdf: Error: Command failed: gs -q -dNODISPLAY -c "(/Users/donniekerr/Documents/work/pdf2png/pdf2png/input/W-4-KERR.pdf) (r) file runpdfbegin pdfpagecount = quit"
[5/15/20 4:06:53 PM] GPL Ghostscript 9.52: Unrecoverable error, exit code 1

@Houkouki
Copy link

Ghostscript (as of version 9.28) defaults to SAFER being active.
Try adding the -dNOSAFER parameter just like this:
gs -q -dNOSAFER -dNODISPLAY -c "(/Users/donniekerr/Documents/work/pdf2png/pdf2png/input/W-4-KERR.pdf) (r) file runpdfbegin pdfpagecount = quit"
Have a look at Ghostscript's command line options for further reference.
(You might want to check -dSAFER and -dNOSAFER in particular)

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