| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Need 'global _encoding' before setting global variable _encoding, otherwise has
no affect.
Also default to user_errors=0 in various gsapi_run*() functions, for
convenience.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Now works on MacOS - need to use default leafname libgs.dylib.
Allow environmental variables to specify location of ghostscript shared lib or
its containing directory.
Give examples of running gsapi.py in Windows Powershell or Cmd window.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
gsapi_enumerate_params().
Also:
Wrote some very crude tests of new fns.
Extended gsapi_set_param() to take optional <type_> arg.
Fixed error in handling of word size on 64-bit Windows.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gsapi.py:
Generate exceptions instead of returning error codes.
Added python versions of gs_error_* codes.
examples.py:
Updated to match new API.
Re-raise import error if 'import gsapi' fails.
Patched up calls of run_gpdl() to pass in_filename because passing None
caused underlying C to return an error.
Marked as executable.
Look for input files relative to top of ghospdl checkout (found using
__file__).
|
|
|
|
| |
libgs.so/gpdldll*.dll.
|
|
|
|
|
| |
Remove ;'s at some line endings (a hard habit to break).
Add try catch around import process. Update README
|
|
|
|
| |
Also fix typos in C# README
|
|
|
|
|
|
|
|
|
|
|
|
| |
Set global _encoding to the encoding passed to gsapi_set_arg_encoding(), and
use it where expected by the underlying C code.
gsapi_set_stdio():
Pass bytes object to stdout and stderr callbacks for convenience, and
document what expectations are.
gsapi_run_string*():
Accept str or bytes; encode the former into bytes using utf-8 encoding.
|
|
|
|
|
| |
Removed use of collections module, and instead use hand-written classes, which
are clearer and don't require python-3.7.
|
| |
|
|
Current csharp demo shows creation of wpf viewer. Goal will
be to next show a Linux viewer using mono and the same API file.
Python demo/API brought over from toolbin.
|