eps2pdf Manual Page
Name
eps2pdf (version 2011/06/01) - converts EPS files to PDF
Synopsis
eps2pdf [options] [psfile] epsfile(s)
The shell script eps2pdf converts the EPS files specified on the command line to PDF. All fonts will be embedded and subset in the PDF file automatically. The files to be converted must have the extension .eps, but you do not have to specify the extension on the command line explicitly.
Options
Use this option to automatically detect the tightest possible Bounding Box around the image. This may help if the EPS file is missing a correct Bounding Box, or to get rid of a small white margin around the image.
-C
Normally, eps2pdf maps colours through a CIE colour space when converting between CMYK and RGB, which often results in more accurate colours. The -C switch turns this feature off.
-d res
This option specifies the resolution used in the conversion (in dots per inch). Images in the EPS file will be (down)sampled at the specified resolution. Color and grayscale images will also be antialiased.
-f
Force eps2pdf to overwrite existing files, instead of pausing and prompting you.
-h height
Scale the image to the desired height. Acceptable units for the height are cm, mm and in. For example, -h 2.5cm scales the image to a height of 2.5cm. If you don't specify a unit, the height is interpreted in PostScript points, of which there are 72 per inch. The horizontal scaling will be equal to the vertical scaling if you do not use the -w option as well. The -s option is ignored when you use this option.
-H
Use the HiResBoundingBox instead of the normal BoundingBox to determine the image size.
-j quality
Color and grayscale images in the EPS file are normally recompressed using (lossless) Flate Encoding. This option causes eps2pdf to use (lossy) JPEG Encoding. The parameter sets the quality factor, which must be an integer between 1 and 100.
-l level
Sets the PDF compatibility level. Here the level must be either 1.2, 1.3 or 1.4. The default level is 1.3.
-m model
Use this option to specify the colour model. Possible colour models are CMYK, RGB and Gray (these names are case sensitive).
-o directory
Choose the output directory (the output directory is equal to the input directory by default).
-r angle
Rotate the image counter-clockwise by the specified angle (in degrees). Scaling is always performed before rotation.
-s sc[,ysc]
Scale the image by a given scaling factor. If you specify two scaling factors (as in -s 1,2), the first is used for horizontal scaling, and the second for vertical scaling. Scaling is always performed before rotation.
-w width
Scale the image to the desired width. Units are the same as for the -h option. The vertical scaling will be equal to the horizontal scaling if you do not use the -h option as well. The -s option is ignored when you use this option.
Prepending PostScript files
If a file with extension .ps appears in the list of files passed on to eps2pdf, the contents of that file will be processed just before each next .eps file in the list is rendered. This allows for advanced control over the rendering procedure.
For example, to downsample but prevent antialiasing of colour images, you can say:
echo "<</AntiAliasColorImages false>>setdistillerparams"
> DP.ps
eps2pdf -d 100 DP.ps foo.eps
Further examples
To convert all EPS files in the current directory to PDF, simply type
eps2pdf *.eps