Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < | Python version of the gsapi API in ghostpdl:psi/iapi.h | |||||||
> > | Python API for GSAPI | |||||||
Changed: | ||||||||
< < | There are two approaches that have been tried here: | |||||||
> > | ||||||||
Deleted: | ||||||||
< < |
| |||||||
Changed: | ||||||||
< < |
| |||||||
> > | Overview | |||||||
Changed: | ||||||||
< < | ||||||||
> > | demos/python/gsapi.py provides a Python binding for the C API defined by psi/iapi.h , implemented using Python's ctypes module.
All functions have the same name as the C function that they wrap.
Functions raise a GSError exception if the underlying function returned a negative error code.
Functions that don't have out-parameters return None . Out-parameters are returned directly (using tuples if there are more than one).
See demos/python/examples.py for sample usage.
Usagemake sodebug LD_LIBRARY_PATH=sodebugbin ./demos/python/gsapi.py | |||||||
Changed: | ||||||||
< < | -- ![]() | |||||||
> > | On Windows perform a Release build (x64 or Win32). | |||||||
Deleted: | ||||||||
< < | Comments | |||||||
Changed: | ||||||||
< < | ||||||||
> > | Limitations as of 2020-12-19:Only very limited testing has been done. Tested on Linux, Windows and OpenBSD with python-2.7 and 3.7. We don't providegsapi_add_fs() or gsapi_remove_fs() .
We only provide display_callback V2, without V3's display_adjust_band_height() and display_rectangle_request() .
Please send any questions, comments or suggestions about this page to: julian.smith@artifex.com |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Python version of the gsapi API in ghostpdl:psi/iapi.h | ||||||||
Line: 6 to 6 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < | Python version of the gsapi API. | |||||||
> > | Python version of the gsapi API in ghostpdl:psi/iapi.h | |||||||
There are two approaches that have been tried here: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Python version of the gsapi API.There are two approaches that have been tried here:
-- ![]() Comments |