[Gsview] ghost question

Kevin Bouchard kbouchard at eonmediainc.com
Mon Mar 1 06:08:35 PST 2004



Hi everybody,


I would like to ask a few question about GhostScript and ghostview. First of all, I would like to develop an ActiveX that is able to display a PDF in a web page. I have a functional prototype based on gswin32.exe. However, since gswin32.exe is a command line application, there is stdin and stdout interaction with the user and ghostscript seemed to be drived by thoses commands.

My prototype simply block on the stdin callback, wait for the user click on a button labeled "next page". Once this button clicked, the message is sent to the main thread and a new line is copied in the stdin buffer. 

I know there is better way to handle this situation, but the documentation is really not complete for Win32 applications. Additionnaly, I still don't how to display previous pages (go back).

I tried to traced gs view code to see how it's implemented, but it's very BIG and hard to trace. So that's why I ask on this list for a few HINTS to ghostscripts experts.


What are the best way to drive ghostscript from Windows application ( user click buttons, menus etc) ? What about gs_run_string ? Are those thousands of postscripts files necessary(what would be a minimal script) ?


thanks you very much.

Kevin Bouchard



More information about the Gsview mailing list