Announcing: python-ghostscript 0.3

Hartmut Goebel h.goebel at
Thu Aug 12 15:03:34 CEST 2010


			python-ghostscript 0.3

		A Python-Interface to the Ghostscript
			 C-API using ctypes

:Copyright: GNU Public License v3 (GPLv3)
:Author:  Hartmut Goebel <h.goebel at>

`Ghostscript`__, is a well known interpreter for the PostScript
language and for PDF. This package implements a interface to the
Ghostscript C-API using `ctypes`__. Both a low-level and a pythonic,
high-level interface are provided.


This package is currently tested only under GNU/Linux. Please report
whether it works in your environment, too. Thanks.

Latest Changes

:0.3 (2010-08-12):

  * Added support for win32: The DLL to load is searched in registry.

  * On other platforms: Be more inteligent about finding Ghostscript
    shared object file (fall back to ctypes.util.find_library() if
    `` can not be loaded

  * Better error messages if lib/dll is not found.

  * Removed relative imports, so older versions of Python can be used.

  * Added nice project logo

:0.2 (2010-08-06):

  * Fixed several bugs, esp. for running strings by Ghostscript.


Here is an example for how to use the high-level interface of
`python-ghostscript`. This implements a very basic ps2pdf-tool::

  import sys
  import ghostscript

  args = [
      "ps2pdf",	# actual value doesn't matter
      "-dNOPAUSE", "-dBATCH", "-dSAFER",
      "-sOutputFile=" + sys.argv[1],
      "-c", ".setpdfwrite",
      "-f",  sys.argv[2]


Hartmut Goebel

| Hartmut Goebel          | h.goebel at               |
| | compilers which you thought are impossible |

More information about the Python-announce-list mailing list