EPSTOPDF(1)
๐ EPSTOPDF(1) โ general commands manual ๐
okay bestie, sit down, we're talking about epstopdf (and its twin repstopdf) ๐ฆ this is a General Commands Manual page and honestly? it ate.
โจ NAME โจ
epstopdf, repstopdf โ convert an EPS file to PDF ๐
โจ SYNOPSIS โจ
epstopdf [options] [epsfile [pdffile.pdf]]
โจ DESCRIPTION โจ
So epstopdf converts the input PostScript file to PDF, and by default it does that using Ghostscript. slay ๐
In more detail (because we love details): epstopdf transforms the Encapsulated PostScript file epsfile (or standard input, if you're piping, main character energy) so that it is guaranteed to start at the 0,0 coordinate, and it sets a page size exactly corresponding to the BoundingBox. So the result needs no cropping, and the PDF MediaBox is correct. no cap, that's the whole point. โจ
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. To change this, use, for example
--gsopt=-dCompatibilityLevel=1.7
(Until epstopdf 2.28 (released September 2018), the PDF version was whatever the underlying Ghostscript or other interpreter produced by default. throwback era ๐)
PJL commands at the start of a file are removed. DOS EPS binary files (TN 5002) are supported. Seeking from a pipe is not supported. ๐ซถ
If the bounding box in the input is incorrect, inevitably there will be resulting problems. like. inevitably. ๐ญ
โจ OPTIONS โจ
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. (future-proofing is self-care, bestie ๐)
๐ธ General script options
--helpโ display help message and exit--versionโ display version information and exit--outfile=fileโ write result to file. If this option is not given, and--nogsor--filteris specified, write to standard output; otherwise, the default is to construct the output file name by replacing any extension in the input file with.pdf.--[no]debugโ write debugging info (default:false). For maximum output, use--debugas the first option. ๐ฅ--[no]exactโ scan ExactBoundingBox (default:false).--[no]filterโ read standard input and (unless--outfileis given) write standard output (default:false).--[no]gsโ run Ghostscript (default:true). With--nogs, output (to standard output by default) the PostScript that would normally be converted; that is, the input PostScript as modified byepstopdf.--[no]hiresโ scan HiresBoundingBox (default:false).--restricted=valโ turn on restricted mode (default:[true for repstopdf, else false]); this forbids the use of--gscmd, among other options, and imposes restrictions on the input and output file names according to the values ofopenin_anyandopenout_any(see the Web2c manual, https://tug.org/web2c). On Windows, the Ghostscript command is forced to be the TeX Live builtings, installed under.../tlpkg/tlgs/bin/.
๐ฆ Options for Ghostscript (more info below)
--gscmd=valโ pipe output to val (default:[gswin64c.exe on 64-bit Windows, gswin32c.exe on 32-bit Windows, else gs])--gsopt=valโ include val as one argument in thegscommand (can be repeated).--gsopts=valโ split val at whitespace and include each resulting word as an argument in thegscommand (can be repeated).--autorotate=valโ set AutoRotatePages (default:None); recognized val choices:None,All,PageByPage. For EPS files,PageByPageis equivalent toAll.--[no]compressโ use compression in the output (default:true); if turned off, passes-dUseFlateCompression=false.--device=devโ use-sDEVICE=dev(default:pdfwrite); not allowed in restricted mode. ๐ซ--[no]embedโ embed fonts (default:true); passes-dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true.--[no]grayโ grayscale output (default:false); passes-sColorConversionStrategy=Gray -dProcessColorModel=/DeviceGray.--pdfsettings=valโ use-dPDFSETTINGS=/val(default isprepressif--embed, else empty); recognized val choices:screen,ebook,printer,prepress,default.--[no]quietโ use-q, a.k.a.-dQUIET(default:false).--res=dpi, dpixdpiโ set image resolution (default:[use gs default]).--[no]saferโ use-d(NO)SAFER(default:true).
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. This form must be used if a gs 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.
In order to give a comprehensible error message, epstopdf checks whether kpsewhich and (the specified) gs are found in the current PATH, or executable if they are specified as absolute names. ๐
โจ EXAMPLES โจ
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:
epstopdf --nogs test.ps >testcorr.ps
In all cases, you can add --debug to see more about what epstopdf is doing. Use --debug as the first option for maximum output. ๐
โจ BUGS โจ
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 (https://lists.tug.org/tex-k). When reporting bugs, please include an input file and the command line options specified, so the problem can be reproduced. (help them help you bestie ๐)
โจ SEE ALSO โจ
gs(1), pdfcrop(1).
The epstopdf LaTeX package, which automates running this script on the fly under LaTeX: https://ctan.org/pkg/epstopdf-pkg.
โจ AUTHOR โจ
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 package page on CTAN: https://ctan.org/pkg/epstopdf.
epstopdf home page: https://tug.org/epstopdf.
You may freely use, modify and/or distribute this man page. The epstopdf script is released under the modified BSD license. ๐
$Id: epstopdf.1 71121 2024-04-29 17:27:25Z karl $
and that's the whole thing!! ๐ธ this version is dated <strong>29 April 2024</strong>, and the source file is the one right up there in that $Id line โ epstopdf.1, revision 71121, timestamped 2024-04-29 17:27:25Z, signed by karl. iconic. periodt. ๐โจ
๐ฆ where this page comes from
- alpine 3.24: texmf-dist-fontutils-doc 2026.0-r0 ยท LPPL-1.0 AND LPPL-1.1 AND LPPL-1.2 AND LPPL-1.3a AND LPPL-1.3c AND GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms