← 返回命令列表

Linux command

epstopdf 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Convert EPS to PDF

epstopdf [image.eps]

Specify output file

epstopdf --outfile=[output.pdf] [image.eps]

Convert with Ghostscript options

epstopdf --gsopt=[-dPDFSETTINGS=/prepress] [image.eps]

Restricted mode

epstopdf --restricted [image.eps]

Embed fonts

epstopdf --embed [image.eps]

Read EPS from stdin, write PDF to stdout

cat [image.eps] | epstopdf --filter > [out.pdf]

Use HiResBoundingBox

epstopdf --hires [image.eps]

说明

epstopdf converts Encapsulated PostScript (EPS) files to PDF format. It uses Ghostscript for the conversion and is commonly used in TeX/LaTeX workflows. The tool handles bounding box calculations, font embedding, and produces PDF output suitable for inclusion in documents.

参数

-o, --outfile= _file_
Output PDF file name.
--filter
Read EPS from stdin and write PDF to stdout.
--restricted
Restricted mode (no shell escapes or unsafe options).
--gsopt= _option_
Pass a single option to Ghostscript (repeatable).
--gsopts= _options_
Pass multiple space-separated options to Ghostscript.
--gscmd= _command_
Ghostscript command to use.
--gs, --nogs
Run Ghostscript (default) or output intermediate PostScript instead.
--hires
Scan and use the HiResBoundingBox.
--exact
Scan and use the ExactBoundingBox.
--embed, --noembed
Control font embedding.
--compress, --nocompress
Toggle output compression.
--gray, --nogray
Convert output to grayscale.
--autorotate= _MODE_
Set page rotation behavior (None, All, or PageByPage).
--pdfsettings= _LEVEL_
Ghostscript PDF quality preset (e.g., screen, ebook, printer, prepress).
--res= _DPI_
Set raster image resolution.
--safer, --nosafer
Toggle Ghostscript safety restrictions.
--quiet, --noquiet
Suppress or show output messages.
--debug
Enable debug output.
--version
Display version information.
--help
Display help.

FAQ

What is the epstopdf command used for?

epstopdf converts Encapsulated PostScript (EPS) files to PDF format. It uses Ghostscript for the conversion and is commonly used in TeX/LaTeX workflows. The tool handles bounding box calculations, font embedding, and produces PDF output suitable for inclusion in documents.

How do I run a basic epstopdf example?

Run `epstopdf [image.eps]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o, --outfile= _file_ do in epstopdf?

Output PDF file name.