Tags:
create new tag
view all tags

Python API for GSAPI

Overview

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.

Usage

make sodebug
LD_LIBRARY_PATH=sodebugbin ./demos/python/gsapi.py

On Windows perform a Release build (x64 or Win32).

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 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: julian.smith@artifex.com

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2020-12-19 - JulianSmith
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 2014 Artifex Software Inc