GhostScript and wwGhostScript

Ghostscript is a free Postscript and PDF manipulation tool that is managed under an open source license (GNU and a custom license). The licensing - as with all open source - is not straightforward and while free for personal use Ghostscript does require licensing for re-distribution and certain commercial use. Please check the licensing on the the GhostScript Web site.

Web Connection exposes GhostScript via the wwGhostScript class. To use the class you need to install GhostScript and a Postscript compatible printer driver. wwGhostscript works by using GhostScript as a PostScript to PDF converter.

You need:

Example:

oPDF = CREATEOBJECT("wwGhostScript") oPDF.cPrinterDriver = "Xerox Phaser 1235 PS" && Default oPDF.cResolution = "300x300" && optional oPDF.PrintReport("customer.frx","d:\temp\customer.pdf")

Printer Driver Name
You can either set the printer driver explicitly as in the example above or subclass and set the property in the subclass. The latter is more maintainable.

To install the default Xerox Phaser 1235 PS printer driver easily you can use the following code from the comand window:

DO WCONNECT InstallPrinterDriver("Xerox Phaser 1235 PS")

Url: www.ghostscript.com
Price: Free


  Last Updated: 5/3/2007 | © West Wind Technologies, 2008