Pull requests

#1 Merged
Repository
lassefister
Branch
default
Repository
htgoebel
Branch
default

display_callback structure

Author
  1. Lasse Fister
Reviewers
Description

Hallo Hartmut, ich habe die display callback struct der ghostscript api zu python-ghostscript hinzugefügt und ein beispiel für die benutzung von artifex c code nach python portiert.

Würde mich freuen wenn du das in das Projekt übernimmst.

Gruß, Lasse

  • Learn about pull requests

Comments (2)

  1. Lasse Fister author

    I tried the email reply feature but the message doesn't appear here. At the risk of having my answer posted twice, here is a copy:

    Does it throw any errors?

    I think the main dependencies are from Gtk and pygobject. The according Debian packages for the imported modules are: libgtk-3-0 (I think this is what pygobject uses) python-gobject (depends on python-gi) python-cairo

    The Gtk Version of my Computer is 3.6, its a Lubuntu 12.08 Because of a missing method in python-cairo for python3 you'll have to stick with python2. I use Python 2.7.3 Here is the Python Gtk 3 Documentation: http://python-gtk-3-tutorial.readthedocs.org/en/latest/index.html

    run the example like this: $ ./dxmain.py -dBATCH -sDEVICE=display -dEPSFitPage /path/to/eps_or_pdf.pdf

    more options are available at: http://www.ghostscript.com/doc/current/Use.htm#Output_device