-
Notifications
You must be signed in to change notification settings - Fork 39
Error while converting ps to pdf #46
Comments
Hi there! Can you please try to set a system link - like mentioned #37 (comment) - for gs? cheers |
Hi, Peter |
I can't download you example file, pls try that project: https://github.com/zippy1978/ghost4j/files/148585/testGhost4jIssue37.zip |
I tried that project with my file and it throws the same error : Could not create a PDF using Ghost4J, here is the reason: 'org.ghost4j.GhostscriptException: Cannot initialize Ghostscript interpreter. Error code is -100', please check the Stacktrace for more information. |
Hi,
I am trying to convert ps to pdf. The high level example gives me this error :
0 [main] INFO org.ghost4j.Ghostscript - %%[ Error: undefined; OffendingCommand: load ]%%
2 [main] ERROR org.ghost4j.Ghostscript - GPL Ghostscript 9.10: Unrecoverable error, exit code 1
ERROR: org.ghost4j.GhostscriptException: Cannot initialize Ghostscript interpreter. Error code is -100
Okay, so i tried the core api example and ended with this :
121 [main] INFO org.ghost4j.Ghostscript - %%[ ProductName: GPL Ghostscript ]%%
128 [main] INFO org.ghost4j.Ghostscript - %%[ Error: rangecheck; OffendingCommand: pdfmark ]%%
128 [main] ERROR org.ghost4j.Ghostscript - GPL Ghostscript 9.10: Unrecoverable error, exit code 1
ERROR: Cannot initialize Ghostscript interpreter. Error code is -100
If I execute this command in a shell, its working -> gs -ps2pdf -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=/tmp/test.pdf -c .setpdfwrite -f /tmp/pdf-sample.pdf.ps
I am using ghost4j 1.0, gs 9.10 and ubuntu 14.04 and here is my example file : http://workupload.com/file/w2G21VR5
With another ps file both api samples working. I dont know the problem and need some help.
Peter
The text was updated successfully, but these errors were encountered: