EPSTOPDF(1) | General Commands Manual | EPSTOPDF(1) |
epstopdf, repstopdf - convert an EPS file to PDF
epstopdf [options] [epsfile [pdffile.pdf]]
By default, epstopdf converts the input PostScript file to PDF, using Ghostscript.
Epstopdf transforms the Encapsulated PostScript file epsfile (or standard input) so that it is guaranteed to start at the 0,0 coordinate, and it sets a page size exactly corresponding to the BoundingBox. Thus, the result needs no cropping, and the PDF MediaBox is correct.
By default, the output name is the input name with any extension replaced by .pdf. An output name ending with .pdf can also be given as a second argument on the command line, or the --outfile (-o) option can be used with any name.
The output is PDF 1.5 by default; use, e.g.,
--gsopt=-dCompatibilityLevel=1.7to change this. (Until epstopdf 2.28 (released September 2018), the PDF version was whatever the underlying Ghostscript or other interpreter produced by default.)
PJL commands at the start of a file are removed. DOS EPS binary files (TN 5002) are supported.
If the bounding box in the input is incorrect, of course there will be resulting problems.
Options may start with either "-" or "--", and may be unambiguously abbreviated. It is best to use the full option name in scripts to avoid possible collisions with new options in the future.
General script options:
Options for Ghostscript (more info below):
In addition to the specific options above, additional options to be used with gs can be specified with either or both of the two cumulative options --gsopts and --gsopt.
--gsopts takes a single string of options, which is split at whitespace, each resulting word then added to the gs command line individually.
--gsopt adds its argument as a single option to the gs command line. It can be used multiple times to specify options separately, and is necessary if an option or its value contains whitespace.
In restricted mode, options are limited to those with names and values known to be safe. Some options taking booleans, integers or fixed names are allowed, those taking general strings are not.
These examples all equivalently convert `test.eps' to `test.pdf':
epstopdf test.eps epstopdf test.eps test.pdf cat test.eps | epstopdf --filter >test.pdf cat test.eps | epstopdf -f -o=test.pdf
Example for using HiResBoundingBox instead of BoundingBox:
epstopdf --hires test.eps
Example for epstopdf's attempt at correcting PostScript:
$program --nogs test.ps >testcorr.ps
In all cases, you can add --debug (-d) to see more about what epstopdf is doing.
The case of "%%BoundingBox: (atend)" when input is not seekable (e.g., from a pipe) is not supported.
Report bugs in the program or this man page to tex-k@tug.org. When reporting bugs, please include an input file and the command line options specified, so the problem can be reproduced.
The epstopdf LaTeX package, which automates running this script on the fly under TeX: https://ctan.org/pkg/epstopdf-pkg.
Originally written by Sebastian Rahtz, for Elsevier Science, with subsequent contributions from Thomas Esser, Gerben Wierda, Heiko Oberdiek, and many others. Currently maintained by Karl Berry.
Man page originally written by Jim Van Zandt.
epstopdf home page: https://tug.org/epstopdf.
You may freely use, modify and/or distribute this man page.
29 August 2022 |