zippy1978 / ghost4j

Java wrapper for Ghostscript C API + PS/PDF document handling API
http://www.ghost4j.org
GNU Lesser General Public License v3.0
64 stars 38 forks source link

strange error in CMD Error: /rangecheck in --pdfmark-- #36

Closed Vad1mo closed 8 years ago

Vad1mo commented 10 years ago

Hi I get this error Error: /rangecheck in --pdfmark-- ... ... Current file position is 466

but only when I run the application via gradle run. If I run the application from Intellij it is working.

I have same working dir. Same JVM Same start parameter same startup process gradle run from intellij and command line.

what does this error mean anyway? I can I trace it more then with "-dDEBUG", "-E", Can I print out the libraries ghost4j is using?

zippy1978 commented 10 years ago

Hi,

The error comes from Ghostscript, this is probably caused by a path issue. /bin and /lib of Ghostscript must be on the path.

Regards, Gilles

Vad1mo commented 10 years ago

Thank you. I think I will try to print out the PATH during start in java and see if there are any differences between start with intellij and cmd.