[Gs-text-api] Use of ghostscript in VB6

Russell Lang gsview@ghostgum.com.au
Tue, 2 Jul 2002 19:12:47 +1000


> Can anyone supply VB code necessary to run Ghostscript in a VB6 program
> without having to shell it
> 
> 1. ps to pdf conversion
> 2. is there a vb6 component for the viewer rather than having to use
> pdf.ocx

1. See http://www.cs.wisc.edu/~ghost/doc/gsapi.htm
That will show you how to do ps->pdf with the Ghostscript 
DLL.  I've got a test DLL that provides an even simpler 
interface to Ghostscript.  It's a single API.  I intend to 
wrap this as an ActiveX control at some stage.

2. The closest is a test ActiveX control I've built.  This 
allows you to set the filename, page size, resolution, page 
number and then tell it to render the page.  It displays as 
a windowless ActiveX control.  The container is responsible 
for scrolling.

Contact me if you want to work with either of my ActiveX 
controls (either vapourware or test). 

Russell Lang                   gsview@ghostgum.com.au
Ghostgum Software Pty Ltd      http://www.ghostgum.com.au/