{ "info": { "author": "Hartmut Goebel (forked by kozea)", "author_email": "h.goebel@crazy-compilers.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. -*- mode: rst ; ispell-local-dictionary: \"american\" -*-\n\n==========================\n`python-ghostscript`\n==========================\n\n---------------------------------------------------------------------\nPython-Interface to the Ghostscript C-API\n---------------------------------------------------------------------\n\n:Author: Hartmut Goebel \n:Version: 0.5dev\n:Copyright: GNU Public License v3 (GPLv3)\n:Homepage: http://bitbucket.org/htgoebel/python-ghostscript\n\n`Ghostscript`__, is a well known interpreter for the PostScript\nlanguage and for PDF. This package implements a interface to the\n`Ghostscript C-API`__ using `ctypes`__. Both a low-level and a pythonic,\nhigh-level interface are provided.\n\n__ http://www.ghostscript.com/\n__ http://pages.cs.wisc.edu/~ghost/doc/cvs/API.htm\n__ http://docs.python.org/library/ctypes.html\n\n\nThis package is currently tested only under GNU/Linux. Please report\nwhether it works in your environment, too. Thanks.\n\n\nExample\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nHere is an example for how to use the high-level interface of\n`python-ghostscript`. This implements a very basic ps2pdf-tool::\n\n import sys\n import ghostscript\n\n args = [\n \"ps2pdf\",\t# actual value doesn't matter\n \"-dNOPAUSE\", \"-dBATCH\", \"-dSAFER\",\n \"-sDEVICE=pdfwrite\",\n \"-sOutputFile=\" + sys.argv[1],\n \"-c\", \".setpdfwrite\",\n \"-f\", sys.argv[2]\n ]\n\n ghostscript.Ghostscript(*args)\n\nHere an example for passing a string document to Ghostscript::\n\n doc = \"\"\"%!\n /Helvetica findfont 20 scalefont setfont \n 50 50 moveto\n (Hello World) show\n showpage\n \"\"\"\n\n import ghostscript\n\n args = \"\"\"test.py\n -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=/tmp/out.pdf\n -c .setpdfwrite\"\"\".split()\n\n GS = ghostscript.Ghostscript(*args)\n try:\n GS.run_string(doc)\n finally:\n GS.exit()\n\n\nMore examples can be found in the `examples` subdirectory of the\ndistribution archive.\n\n\nRequirements and Installation\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n:Please note: This package is meant for developers. Even if there are\n some usable examples included, installations instructions are meant\n for developers.\n\n`python-ghostscript` requires\n\n* `Python`__ 2.3 or higher (tested with Python 2.6)\n* `ctypes`__ when using Python 2.3 or 2.4 (`ctypes` is already\n included in Python 2.5 and higher)\n* `setuptools`__ or `distribute`__ for installation (see below).\n* `Ghostscript`__ Version 8.x\n\n__ http://www.python.org/download/\n__ http://pypi.python.org/pypi/ctypes\n__ http://pypi.python.org/pypi/setuptools\n__ http://pypi.python.org/pypi/distribute\n__ http://www.ghostscript.com/\n\n\nInstalling python-ghostscript\n---------------------------------\n\nSince this package is meant for developers, we assume you have\nexperience in installing Python packages.\n\n`python-ghostscript` is listed on `PyPI (Python Package Index)`__, so\nyou can install it using `easy_install` or `pip` as usual. Please\nrefer to the manuals of `easy_install` resp. `pip` for further\ninformation.\n\n__ http://pypi.python.org/pypi\n\nAlternatively you my download and unpack the source package of\n`python-ghostscript` from http://pypi.python.org/pypi/ghostscript and\nrun::\n\n python ./setup.py install", "description_content_type": null, "docs_url": null, "download_url": "http://pypi.python.org/pypi/ghostscript", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/htgoebel/python-ghostscript", "keywords": "Ghostscript,PDF,Postscript", "license": "GPL 3.0", "maintainer": null, "maintainer_email": null, "name": "python3-ghostscript", "package_url": "https://pypi.org/project/python3-ghostscript/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python3-ghostscript/", "project_urls": { "Download": "http://pypi.python.org/pypi/ghostscript", "Homepage": "http://bitbucket.org/htgoebel/python-ghostscript" }, "release_url": "https://pypi.org/project/python3-ghostscript/0.5.0/", "requires_dist": null, "requires_python": null, "summary": "Interface to the Ghostscript C-API, both high- and low-level, based on ctypes", "version": "0.5.0" }, "last_serial": 2180763, "releases": { "0.5.0": [ { "comment_text": "", "digests": { "md5": "0e3a24a374c0d9cc1f2008801ead6927", "sha256": "a474879da1271b1ecab411e17bdafb475b81c288d2cf67f8ff7871354eaa6975" }, "downloads": -1, "filename": "python3_ghostscript-0.5.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0e3a24a374c0d9cc1f2008801ead6927", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 14780, "upload_time": "2016-06-22T08:33:54", "url": "https://files.pythonhosted.org/packages/6a/2d/e2d7474bea24d223d5dc86d51241fd305b75a9168f2e1d7ee07b883c80a5/python3_ghostscript-0.5.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "19e7d4d65a9de89aef5aa4c73ef43902", "sha256": "4b025cfc001dfa31ab1801ff36774b397fd9d00d548c90bf66293481a3e74628" }, "downloads": -1, "filename": "python3-ghostscript-0.5.0.tar.bz2", "has_sig": false, "md5_digest": "19e7d4d65a9de89aef5aa4c73ef43902", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21400, "upload_time": "2016-06-22T08:33:45", "url": "https://files.pythonhosted.org/packages/55/4f/e58b0b537d1f8ec31f372a5ded7177c70d13bea3a80054cb5b867595eef8/python3-ghostscript-0.5.0.tar.bz2" }, { "comment_text": "", "digests": { "md5": "81caf7e2ac390dc179258757866938a5", "sha256": "41e684238fee9a86dcf6d61e765814cdd33a9986f0fb4ef5d3abbfb20999f66f" }, "downloads": -1, "filename": "python3-ghostscript-0.5.0.zip", "has_sig": false, "md5_digest": "81caf7e2ac390dc179258757866938a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30166, "upload_time": "2016-06-22T08:33:50", "url": "https://files.pythonhosted.org/packages/dd/bd/9b6172d8019680758b16be7b4a98440382af5fc902d7363ae8d557d144ae/python3-ghostscript-0.5.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0e3a24a374c0d9cc1f2008801ead6927", "sha256": "a474879da1271b1ecab411e17bdafb475b81c288d2cf67f8ff7871354eaa6975" }, "downloads": -1, "filename": "python3_ghostscript-0.5.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0e3a24a374c0d9cc1f2008801ead6927", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 14780, "upload_time": "2016-06-22T08:33:54", "url": "https://files.pythonhosted.org/packages/6a/2d/e2d7474bea24d223d5dc86d51241fd305b75a9168f2e1d7ee07b883c80a5/python3_ghostscript-0.5.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "19e7d4d65a9de89aef5aa4c73ef43902", "sha256": "4b025cfc001dfa31ab1801ff36774b397fd9d00d548c90bf66293481a3e74628" }, "downloads": -1, "filename": "python3-ghostscript-0.5.0.tar.bz2", "has_sig": false, "md5_digest": "19e7d4d65a9de89aef5aa4c73ef43902", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21400, "upload_time": "2016-06-22T08:33:45", "url": "https://files.pythonhosted.org/packages/55/4f/e58b0b537d1f8ec31f372a5ded7177c70d13bea3a80054cb5b867595eef8/python3-ghostscript-0.5.0.tar.bz2" }, { "comment_text": "", "digests": { "md5": "81caf7e2ac390dc179258757866938a5", "sha256": "41e684238fee9a86dcf6d61e765814cdd33a9986f0fb4ef5d3abbfb20999f66f" }, "downloads": -1, "filename": "python3-ghostscript-0.5.0.zip", "has_sig": false, "md5_digest": "81caf7e2ac390dc179258757866938a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30166, "upload_time": "2016-06-22T08:33:50", "url": "https://files.pythonhosted.org/packages/dd/bd/9b6172d8019680758b16be7b4a98440382af5fc902d7363ae8d557d144ae/python3-ghostscript-0.5.0.zip" } ] }