Personal info for JohnBoy

Name: John Morin

Notes: Trying to create a Delphi interface to Ghostscript. With the help of Robert Marquardt (Team JEDI). I now have Delphi units that load GSDLL32.DLL and provide the interface for function calls. I am struggling with parameters for gsdll_init and gsdll_execute_cont. Robert Marquardt has requested that anything useful that results be donated to project Jedi http://delphi-jedi.org I have no objection to this.

Recent diary entries for JohnBoy:
RSS

23 Feb 2005  »

To andyyy

I have some Delphi code that works with the Ghostscript DLL, I would be glad to share it with you if you are still having problems.

John

1 Jul 2003 (updated 1 Jul 2003)  »

Hi

After many attempts with older versions of Ghostsript (6.50 and before) I have at last with version 8.00 succeded in what I was trying to do.

My company has a Graphics department which create EPS files for use in our publications and CDs. We had a requirement for the Editorial staff to be able to view these EPS files while they write new information. The problem was that there are no off the shelf EPS file viewers available (Ghostscript and GSView excepted). Additionally the server on which the EPS files reside has a limited user licence so that we could not give access to all of our Editorial and Graphics staff.

The answer was to provide an on-line viewer using Web server software, CGI and Ghostscript. I now have a Windows 2000 pc set up as a web server. This machine already has an account on the Graphics server as it is used as an admin machine. The CGI program (Delphi 6.0) receives requests from users to view a graphic. The CGI program upon finding the correct file uses Ghostscript to create a temporary file the name of which is sent back to the user in the IMG tag of a dynamic HTML file. After a period of time another small program deletes the temporary file.

The Web server is a Pentium III 750 with 256 MB RAM running Windows 2000. The Graphics server is an SG Challange S which only has a 10 MB NIC, the performance of the system is very good, it takes only a few seconds to produce output at the client (many of which are P1 133 MHz with 32 MB RAM and 10 MB NICs) from a 1.5 MB EPS file.

If anyone would like the code or more details about how I set this up I would be pleased to hear from them.

Best regards

John Morin

1 May 2001 (updated 1 Jul 2003)  »

Hi

I am specifically trying to convert EPS files to BMP for display in Delphi TImage components. I have Delphi units that load the DLL and provide the interface to the functions.

What I need to know is: 1. What strings to pass in the argv parameter of gsdll_init. 2. What to pass in the *str (command) parameter of gsdll_execute_cont.

I have written the callback function as near as possible to the sample in the docs, is this really what I need?

Help would be appreciated.

Thanks

Regards John

Others have certified this person as follows:

[ Certification disabled because you're not logged in. ]

[ Home | Articles | Account | People | Projects ]