1. PostScript Level 2
Major enhancement to PostScript released in 1990, adding color, composite fonts, and improved performance.
2. Overview
PostScript Level 2 added significant capabilities while maintaining backward compatibility with Level 1. It introduced color support, composite fonts, improved memory management, and numerous new operators.
3. Key Enhancements
3.1. Color Support
-
RGB Color:
setrgbcolor,currentrgbcolor -
CMYK Color:
setcmykcolor,currentcmykcolor -
HSB Color:
sethsbcolor,currenthsbcolor -
Color Spaces:
setcolorspace,setcolor -
Separation Colors: For professional printing
3.2. Composite Fonts
-
Multi-byte character encodings (CJK support)
-
Hierarchical font structure
-
Font mapping algorithms
-
Multiple descendant fonts
3.3. Memory Management
-
Global vs. Local VM: Separate memory regions
-
Auto-Expanding Dictionaries: No dictfull error
-
Garbage Collection: Automatic memory reclamation
-
VM Control:
setglobal,currentglobal
4. New Operators
Level 2 added approximately 120 new operators, including:
-
packedarray,setpacking -
undef,known,whereenhancements -
setcolorspace,setcolor -
makepattern,setpattern -
filterwith multiple encoding types -
setpagedevice,currentpagedevice -
Resource management operators
-
And many more…
5. Backward Compatibility
Level 2 maintains full backward compatibility:
-
All Level 1 operators work unchanged
-
Level 1 programs run without modification
-
New features are additions, not replacements
6. See Also
-
PostScript Level 1 - Original specification
-
PostScript Level 3 - Latest features
-
Version Comparison - Detailed feature comparison