参考《Encpsulated PostScript File Format Specification》
1. 一个被封装的postscript文件,用的也是postscript语言,来描述单页文件。语法基本和postscript一致,只不过有些限制。EPS文件也可以嵌入到ps文件中。区别是,EPS可以带有预览图功能,预览图分辨率可选。预览图功能也不是必须的。
2. 一个EPS文件至少需要一个bounding box 和 所依赖的资源(Reuired DSC Header Comments)。预览图(screen preveiw) 不是必须的,但是必须有相关的描述,例如box(a gray box that represents the extent of the EPS file)。
The two required DSC Header comments are
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: llx lly urx ury %% (llx,lly) lower left (urx, ury) upper-right
3. 可选的注释(Conditionally Required Comments)
%%Begin(End)Preview comments. 必须是EPSI格式(the encapsulated PostScript interchanage format)该格式描述比较简单,在该单元0表示白,1表示黑,和ps中相反。图像数据是用16进制表示的,一行不能超过256,可以偶数倍进行截断。每一行开头必须是%,每行图像数据bits数必须是8的倍数,不足补0.
%%Ex