473,396 Members | 1,913 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Ghostscript interface

Does a ghostscript interface for python exist? I have searched google
quite a bit and all I have been able to find are command line hacks
from within python. Thanks in advance for any useful help.

Sep 10 '06 #1
2 3572
On Sun, 2006-09-10 at 08:14 -0700, defcon8 wrote:
Does a ghostscript interface for python exist? I have searched google
quite a bit and all I have been able to find are command line hacks
from within python. Thanks in advance for any useful help.
I'm not sure what you mean by a "Ghostscript interface". Ghostscript is
a program. Yes, you can run it from Python using the same methods you
run any other program from Python but I'd hardly call that an
"interface".

If you're looking for a python postscript generator I believe a google
search will turn up a number of products.

If you're looking for a python .pdf generator you might want to check
out:
http://www.reportlab.org/

John Purser

Sep 10 '06 #2
defcon8 wrote:
Does a ghostscript interface for python exist? I have searched google
quite a bit and all I have been able to find are command line hacks
from within python. Thanks in advance for any useful help.
I'm not aware of a specific interface to the Ghostscript API, but it is
trivial to implement one with ctypes (included with 2.5).

--
-------------------------------------------------------------------------
Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: an*****@bullseye.apana.org.au (pref) | Snail: PO Box 370
an*****@pcug.org.au (alt) | Belconnen ACT 2616
Web: http://www.andymac.org/ | Australia
Sep 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Chris Jankowski | last post by:
Hi all, I am still fairly new to the Python community and world of Python programming. I am having some trouble changing the output directory when I call Ghostscript. Any sugguestions would be...
1
by: Adam Twardoch | last post by:
I've written a simple commanline wrapper for calling GhostScript from Python. It uses os.system under Windows and os.popen under unixes. The call looks basically like this: gs -q -dNODISPLAY...
1
by: tc | last post by:
Does GhostScript provide any library so that we can reference it in our C# project to programmatically handle printing of ps / pdf files? I have tried to use the gs command (call by process) in...
0
by: Roel | last post by:
Hello I try to pint a pdf from a .net webapplication. Therefore I use GhostScript. When I execute the following line via "start - run", the pdf is printed correctly:...
1
by: Christopher Campbell | last post by:
I am calling Ghostscript 8.00 from and ASP.NET application (VB) to create ..JPG thumbnails of .PDF files. I have created a class module for Ghostscript and I am creating an instance of the class...
2
by: SpamProof | last post by:
I'm using the ps2pdf.bat file that ghostscript provides through my vb.net code to convert word documents to pdf. After each conversion, a winword process is left runnning in the task manager. ...
4
by: Sjaakie | last post by:
Hello, Can someone tell me if it is possible to use Ghostscript from C#? I would like to create thumbnails from several PDFs. TIA
0
by: Sjaakie | last post by:
Is there a Ghostscript ASP.NET wrapper available? Preferrably with an example... Thanks
18
Ciary
by: Ciary | last post by:
hi all, it's my second question of today but since i'm stuck with this problem, i'm going to ask it anyway. i'm trying to convert an uploaded pdf file to a jpg, gif or png file. i want to use it...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.