PostScript Files Distributed with Ghostscript
Generally used system files
gs_*_e.ps
These files define the Encodings known to Ghostscript. All of them except
gs_std_e.psandgs_il1_e.psare loaded only if referred to. However some are additionally built intogscencs.c.
PostScript Encodings
These files are found in the lib subdirectory of the Ghostscript source distribution.
gs_ce_e.ps
These files are found in the Resource/Init subdirectory of the Ghostscript source distribution.
gs_il1_e.ps,gs_std_e.ps,gs_sym_e.ps
PDF Encodings
These files are found in the Resource/Init subdirectory of the Ghostscript source distribution.
gs_mex_e.ps,gs_mro_e.ps,gs_pdf_e.ps,gs_wan_e.ps
Non-standard Encodings
These files are found in the Resource/Init subdirectory of the Ghostscript source distribution.
gs_dbt_e.ps
These files are found in the lib subdirectory of the Ghostscript source distribution.
gs_il2_e.ps,gs_ksb_e.ps,gs_lgo_e.ps,gs_lgx_e.ps,gs_wl1_e.ps,gs_wl2_e.ps,gs_wl5_e.ps
Pseudo-encodings
- These files are found in the
Resource/Initsubdirectory of the Ghostscript source distribution. gs_mgl_e.ps
These files are found in the lib subdirectory of the Ghostscript source distribution.
gs_lgo_e.ps,gs_lgx_e.ps
Other files
These files are found in the Resource/Init subdirectory of the Ghostscript source distribution.
gs_btokn.psgs_init.psreads this in if the btoken feature is included in the configuration. It provides support for binary tokens.gs_cff.psLoad CFF (compressed) fonts.
gs_fntem.psCode for emulating PostScript fonts with non-PostScript font technologies.
gs_cidtt.psCode for emulating
CIDfonts with TrueType fonts.gs_cidcm.psCode for recognizing font names of the form
CIDFont-CMap(orCIDFont--CMap) and creating the font automatically.gs_ciddc.psDefines Decoding and
CIDDecodingresource categories and related procsets. Used for for emulating PostScript fonts with non-PostScript font technologies.gs_cidfm.psProvides resource mapping for
CIDFontcategory.gs_cidfn.psProcSetfor implementingCIDFontandCIDMapresources.gs_cmap.psProcSetfor implementingCMapresources.gs_cspace.psPostScript portion of the basic color space handling; see the extensive comment at the head of the file for information.
gs_dscp.psCode to compensate for badly written PostScript files by setting
Orientationaccording to the DSC comments.gs_epsf.psAllow the interpreter to recognize DOS EPSF file headers, and skip to the PostScript section of the file.
gs_fapi.psFont API support.
gs_fonts.psgs_init.psreads this in. It initializes Ghostscript’s font machinery and provides some utility procedures that work with fonts.gs_frsd.psSupport for the PostScript LanguageLevel 3
ReusableStreamDecodefilter.gs_img.psImplementation of the traditional (non-dictionary) form of the image and imagemask operators, and the colorimage operator (including the Next alphaimage facility).
gs_init.psGhostscript reads this automatically when it starts up. It contains definitions of many standard procedures and initialization for a wide variety of things.
gs_lev2.psgs_init.psreads this in if the Ghostscript interpreter includes Level 2 PostScript functions. It contains definitions of procedures and miscellaneous initialization for the Level 2 functions.gs_ll3.psInitialize PostScript LanguageLevel 3 functions.
gs_resmp.psA
procsetfor redefining resource categories with a resource map.gs_res.psgs_init.psreads this in if the Level 2 resource machinery is included. Currently, this is the case for all Level 2 configurations.gs_setpd.psImplementation of the
setpagedeviceoperator.gs_statd.psgs_init.psreads this in. It creates a dummystatusdictand some other environmental odds and ends for the benefit of PostScript files that really want to be printed on a LaserWriter.gs_trap.psStub support for the PostScript LanguageLevel 3 “In-RIP trapping” feature.
gs_ttf.psSupport code for direct use of TrueType fonts.
gs_typ32.psInitialization file for Type 32 fonts.
gs_typ42.psSupport code for Type 42 fonts (TrueType font in a PostScript “wrapper”).
gs_type1.psgs_init.psreads this in if the Ghostscript interpreter includes Type 1 font capability (which it normally does).
Configuration files
These files are found in the Resource/Init subdirectory of the Ghostscript source distribution. Users are allowed to modify them to configure Ghostscript.
FontmapFont mapping table.
cidfmapCID font mapping table. Allows substitution of a CID font for another CID font or a TrueType font for a CID font.
FAPIconfigA configuration file for Font API client.
FAPIfontmapFont mapping table for Font-API-handled fonts.
FAPIcidfmapFont mapping table for Font-API-handled CID fonts.
More obscure system files
Unless otherwise stated, these files are found in the Resource/Init subdirectory of the Ghostscript source distribution.
gs_agl.psContains the mapping from Adobe glyph names to Unicode values, used to support TrueType fonts and disk-based Type 1 fonts.
gs_cet.psSets a number of alternate defaults to make Ghostscript behave more like Adobe CPSI. Useful for running the CET conformance test suite.
gs_diskn.psThis file implements the
%disk IODevice(diskn.devfeature). See the language documentation for information on the use of the%disk#devices. These PostScript modifications primarily perform the searching of allSearchablefile systems in a definedSearchOrderwhen a file reference does not contain an explicit%device%specifier (such as%os%or%disk0%). This is required to emulate undocumented behaviour of Adobe PostScript printers that have a disk and was experimentally determined.gs_kanji.psThis file provides support for the Wadalab free Kanji font. It is not included automatically in any configuration. This file is stored in the
libsubdirectory.gs_pdfwr.psThis file contains some patches for providing information to the pdfwrite driver. It is included only if the pdfwrite driver is included.
ht_ccsto.psA default stochastic CMYK halftone. This file is in the public domain. This file is stored in the
libsubdirectory.stcolor.psConfigure the (Epson) stcolor driver. This file is stored in the
libsubdirectory.
PDF-specific system files
These files are found in the Resource/Init subdirectory of the Ghostscript source distribution.
pdf_base.psUtilities for interpreting PDF objects and streams.
pdf_draw.psThe interpreter for drawing-related PDF operations.
pdf_font.psCode for handling fonts in PDF files.
pdf_main.psDocument- and page-level control for interpreting PDF files.
pdf_ops.psDefinitions for most of the PDF operators.
pdf_rbld.psContains procedures for bebuilding damaged PDF files.
pdf_sec.psPDF security (encryption) code.
gs_icc.psSupport for ICC color profiles. These are not a standard PostScript feature, but are used in the PDF interpreter, as ICC profiles may be embedded in PDF files.
These files are found in the lib subdirectory of the Ghostscript source distribution. These files are templates and should not be used without modification.
PDFX_def.psThis is a sample prefix file for creating a PDF/X document with the pdfwrite device.
PDFA_def.psThis is a sample prefix file for creating a PDF/A document with the pdfwrite device.
Display PostScript-specific system files
These files are found in the Resource/Init subdirectory of the Ghostscript source distribution.
gs_dpnxt.psNeXT Display PostScript extensions.
gs_dps.ps,gs_dps1.ps,gs_dps2.psgs_init.psreads these in if the dps feature is included in the configuration. They provide support for various Display PostScript and Level 2 features.
Art and examples
These files are found in the examples subdirectory of the Ghostscript source distribution.
alphabet.psPrints a sample alphabet at several different sizes.
annots.pdfA sample file with a wide variety of PDF “annotations”.
colorcir.psA set of nested ellipses made up of colored bars.
doretree.psA 3-D image produced by a modeling program. This file is in the public domain.
escher.psA colored version of a hexagonally symmetric Escher drawing of interlocking butterflies. Can be printed on monochrome devices, with somewhat less dramatic results.
golfer.epsA gray-scale picture of a stylishly dressed woman swinging a golf club.
grayalph.psGrayscaled text test pattern.
ridt91.epsThe RIDT ‘91 logo. Note that since this is an EPS file, you will have to add
-c showpageat the end of the command line to print it or convert it to a raster file.snowflak.psA rectangular grid of intricate colored snowflakes. (May render very slowly.)
text_graph_image_cmyk_rgb.pdfA simple PDF containing text and graphics in both RGB and CMYK spaces.
text_graphic_image.pdfA simple PDF containing text and graphics in RGB space.
tiger.epsA dramatic colored picture of a tiger’s head.
transparency_example.psA simple example of transparency.
vasarely.psColored rectangles and ellipses inspired by Victor Vasarely’s experiments with tilting circles and squares.
waterfal.psPrints text in a variety of different sizes, to help evaluate the quality of text rendering.
Utilities
For more information on these utility programs, see the comments at the start of each file . The ones marked (*) have batch files or shell scripts of the same name (like bdftops and bdftops.bat) to invoke them conveniently.
These files are found in the lib subdirectory of the Ghostscript source distribution.
align.psA test page for determining the proper margin and offset parameters for your printer.
caption.psA file for putting a caption in a box at the bottom of each page, useful for trade show demos.
cat.psAppends one file to another. Primarily used to overcome the ‘copy’ limitation of Windows command shell for
ps2epsi.cid2code.psA utility for creating maps from CIDs to Unicode, useful when substituting a TrueType font for an Adobe font.
docie.psAn emulation of the CIE color mapping algorithms.
font2pcl.psA utility to write a font as a PCL bitmap font.
gslp.psA utility for doing “line printing” of plain text files.
gsnup.psA file that you can concatenate in front of (very well-behaved) PostScript files to do N-up printing. It is deliberately simple and naive: for more generality, use
psnup(which, however, requires DSC comments).jispaper.psA file that makes the b0 through b6 procedures refer to JIS B paper sizes rather than ISO B.
landscap.psA file that you can put in front of your own files to get them rendered in landscape mode.
mkcidfm.psA utility for creating a CID font mapping table cidfmap from fonts found in a specified directory.
pdf2dsc.psA utility to read a PDF file and produce a DSC “index” file.
pf2afm.psA utility for producing AFM files from PFA, PFB, and optionally PFM files.
pfbtopfa.psA utility to convert PFB (binary) font files to PFA (text) format.
prfont.psA utility to print a font catalog.
printafm.psA utility to print an AFM file on standard output.
ps2ai.psA utility for converting an arbitrary PostScript file into a form compatible with Adobe Illustrator. NOTE:
ps2aidoesn’t work properly with Adobe’s Helvetica-Oblique font, and other fonts whose originalFontMatrixinvolves skewing or rotation.ps2epsi.psA utility for converting an arbitrary PostScript file into EPSI form.
rollconv.psA utility for converting files produced by Macromedia’s Rollup program to a Type 0 form directly usable by Ghostscript.
stocht.psA file that installs the
StochasticDefaulthalftone as the default, which may improve output quality on inkjet printers. See the file for more information.viewcmyk.psA utility for displaying CMYK files.
viewgif.psA utility for displaying GIF files.
viewjpeg.psA utility for displaying JPEG files.
viewmiff.psA utility for displaying MIFF files.
viewpbm.psA utility for displaying PBM/PGM/PPM files.
viewpcx.psA utility for displaying PCX files.
viewrgb.psA utility for displaying files created by
-sDEVICE=bitrgb.viewraw.psAn extended utility for displaying files created by
-sDEVICE=bitrgb.
Development tools
These files are found in the lib subdirectory of the Ghostscript source distribution.
acctest.psA utility that checks whether the interpreter enforces access restrictions.
image-qa.psA comprehensive test of the image display operators.
ppath.psA couple of utilities for printing out the current path, for debugging.
pphs.psA utility to print the Primary Hint Stream of a linearized PDF file.
traceimg.psTrace the data supplied to the image operator.
traceop.psA utility for tracing uses of any procedure or operator for debugging.
uninfo.psSome utilities for printing out PostScript data structures.
viewps2a.psA utility for displaying the output of
ps2ascii.ps.winmaps.psA utility for creating mappings between the Adobe encodings and the Microsoft Windows character sets.
zeroline.psA utility for testing how interpreters handle zero-width lines.
Odds and ends
These files are found in the lib subdirectory of the Ghostscript source distribution.
jobseparator.psConvenience file containing a job separator sequence for use when passing files with
-dJOBSERVER.lines.A test program for line joins and caps.
stcinfo.psPrint and show parameters of the (Epson) stcolor driver.
This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at artifex.com or contact Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco, CA 94129, USA, for further information.