Hilft Dir folgender Link weiter?
return_codes
Zitat:
Return codes
The gsapi_init_with_args, gsapi_run_* and gsapi_exit functions return an integer code.
Return Codes from gsapi_*()
CODE STATUS
0 No errors
gs_error_Quit "quit" has been executed. This is not an error. gsapi_exit() must be called next.
gs_error_interrupt The polling callback function returned a negative value, requesting Ghostscript to abort.
gs_error_NeedInput More input is needed by gsapi_run_string_continue(). This is not an error.
gs_error_Info "gs -h" has been executed. This is not an error. gsapi_exit() must be called next.
< 0 Error
<= gs_error_Fatal Fatal error. gsapi_exit() must be called next.
The gsapi_run_*() functions do not flush stdio. If you want to see output from Ghostscript you must do this explicitly as shown in the example below.
When executing a string with gsapi_run_string_*(), currentfile is the input from the string. Reading from %stdin uses the stdin callback.