Linux command
a2ping 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Convert
a2ping [input.ps] [output.pdf]
Convert
a2ping --bboxfrom=compute-gs [input.eps] [output.pdf]
Example
a2ping --outformat=[pdf|eps|ps] [input.ps] [output]
说明
a2ping is a Perl script that converts between various page description formats including PostScript (PS), Encapsulated PostScript (EPS), PDF, and related formats. It acts as a smart wrapper around Ghostscript and other tools, automatically detecting input formats and applying appropriate conversions. The tool is particularly useful for converting EPS graphics with proper bounding box handling, making it ideal for preparing figures for LaTeX documents. It can compute accurate bounding boxes, handle font embedding, and optimize output for different use cases.
参数
- --outformat=_format_
- Output format: pdf, eps, eps2, eps3, ps, ps2, ps3
- --bboxfrom=_method_
- Bounding box source: adsc (from DSC comments), compute-gs (compute using Ghostscript)
- --resolution=_dpi_
- Set output resolution in dots per inch
- --compress=_method_
- Compression method: none, zip, best
- --gsextra=_options_
- Pass extra options to Ghostscript
- --help
- Display help information
FAQ
What is the a2ping command used for?
a2ping is a Perl script that converts between various page description formats including PostScript (PS), Encapsulated PostScript (EPS), PDF, and related formats. It acts as a smart wrapper around Ghostscript and other tools, automatically detecting input formats and applying appropriate conversions. The tool is particularly useful for converting EPS graphics with proper bounding box handling, making it ideal for preparing figures for LaTeX documents. It can compute accurate bounding boxes, handle font embedding, and optimize output for different use cases.
How do I run a basic a2ping example?
Run `a2ping [input.ps] [output.pdf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --outformat=_format_ do in a2ping?
Output format: pdf, eps, eps2, eps3, ps, ps2, ps3