<aside> đ https://ghostscript.com/r/GhostPDL-Python-API
</aside>
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.
$ make sodebug
$ LD_LIBRARY_PATH=sodebugbin ./demos/python/gsapi.py
On Windows perform a Release build (x64 or Win32).
Only very limited testing has been done.
Tested on Linux, Windows and OpenBSD with python-2.7 and 3.7.
We donât provide gsapi_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: [email protected]
2020-12-19 - JulianSmith