2025-06-24

epstool用法

Epstool is a utility to create or extract preview images in EPS files, fix bounding boxes and convert to bitmaps.

Features:

  1. Add EPSI, DOS EPS or Mac PICT previews.
  2. Extract PostScript from DOS EPS files.
  3. Uses Ghostscript to create preview bitmaps.
  4. Create a TIFF, WMF, PICT or Interchange preview from part of a bitmap created by Ghostscript.
  5. works under Win32, Win64, OS/2 and Unix.
  6. works on little-endian machines (Intel) or big endian (Sun Sparc, Motorola) machines.

举例

Create EPS file tiger2.eps with TIFF (G3 Fax) preview

  epstool --add-tiff-preview --device tiffg3 tiger.eps tiger2.eps

Add colour preview to EPS file

  epstool ---add-tiff6p-preview tiger.eps tiger3.eps

Extract TIFF preview from tiger3.eps

  epstool --extract-preview tiger3.eps tiger3.tif

EPS file has incorrect %%BoundingBox. Add TIFF4 preview and calculate %%BoundingBox from bitmap.

  epstool --add-tiff4-preview --bbox golfer.eps golfer2.eps

Adjust the BoundingBox of an existing EPS file, but don't add a preview:

  epstool --copy --bbox golfer.eps golfer2.eps
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容