CONFIGURING GHOSTSCRIPT |
Top Previous Next |
Ghostscript is a program used to convert Postscript and PDF documents to image formats. Modern versions (starting with 9.06) can also be used to extract text data from PDF documents. Whenever image output is needed, or text extraction is used such as with AFO, UnForm can internally execute Ghostscript to perform the required function.
If Ghostscript is not already installed on your system, you can use your system's package management tools to install it (ufsetup.sh will offer this option), or you can obtain it from http://ghostscript.com. You can easily verify if Ghostscript is on a Linux system by running 'gs -version'.
Ghostscript is configured in the [drivers] section of uf100d.ini. You can edit this file manually, or use the Server Manager's configuration option to configure the Ghostscript executable path.
The [drivers] section includes several options, plus a series of "drivers" that associate a driver name with a Ghostscript output format.
Note that the use of multi- or single-page output is often dependent on the image format. For example, bmp files do not support multiple pages per file, while tiff files do. Below is a sample [drivers] section. In most cases, the only configuration required is setting the gs= path.
Note also that if you can't locate a suitable Ghostscript version for your Unix system, you can use the Windows Support Server to execute a Windows Ghostscript for jobs that require it.
[drivers] # enable Ghostscript drivers by uncommenting the gs= line gs=gs # windows would typically need a full path # gs=c:\gs\gs9.xx\bin\gswin32c.exe pdffitpage=1 # driver lines are structured as name=gsdevice,multipage,density # gsdevice is the Ghostscript sDEVICE value # multipage is Boolean 0 or 1, 1 means -o file is file<page>.ext # Many formats require a 1, as the image format supports only a # single image per file. # density is output density, as hhh[xvvv] (horizontalxvertical) dpi
bmp=bmp256,1,300 bmpmono=bmpmono,1,300 tif=tiffcrle,0,300 tifmono=tiffg3,0,300 png=png256,1,300 pngmono=pngmono,1,300 jpeg=jpeg,1,300 ps=pswrite,0,300 eps=epswrite,1,300 deskjet=deskjet,0,300 pcl6=pxlmono,0,300 pcl6c=pxlcolor,0,300
|