Ghostscript Delphi example.
2002-03-05

This software was written by Alessandro Briosi with the
assistance of Russell Lang, as an example of how the
Ghostscript DLL may be used Delphi.
It is not a finished product.

The test program is precompiled as Test.exe.
You must have the Ghostscript DLL on your search path.
For example:
  path %path%;c:\gs\gs7.04\bin
  .\test.exe
Select "Open File" and it will render all pages then allow you 
to view them one at a time.  It caches ALL pages in memory, 
so don't use it on a PostScript or PDF file with many pages.

Bug fixes by Kelly Dresser 2004-06-26, to work on 32-bit
display and correct the calling convention of stdio and poll
callbacks.

This example code is Copyright by Alessandro Briosi
and provided under the MIT licence.

   Copyright (c) 2001-2002 Alessandro Briosi
  
   Permission is hereby granted, free of charge, to any person
   obtaining a copy of this software and associated documentation
   files (the "Software"), to deal in the Software without
   restriction, including without limitation the rights to use, copy,
   modify, merge, publish, distribute, sublicense, and/or sell copies
   of the Software, and to permit persons to whom the Software is
   furnished to do so, subject to the following conditions:
  
   The above copyright notice and this permission notice shall be
   included in all copies or substantial portions of the Software.
  
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
   BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
   ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   SOFTWARE.



