Linux command
ps2pdf 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Convert PS to PDF
ps2pdf [input.ps] [output.pdf]
Convert with quality settings
ps2pdf -dPDFSETTINGS=/prepress [input.ps] [output.pdf]
Convert for screen viewing
ps2pdf -dPDFSETTINGS=/screen [input.ps] [output.pdf]
Convert EPS to PDF
ps2pdf [input.eps] [output.pdf]
说明
ps2pdf converts PostScript files to PDF format using Ghostscript. It's a convenient wrapper around gs (Ghostscript) with PDF output options. The tool is commonly used in document processing pipelines and print workflows.
参数
- -dPDFSETTINGS= _setting_
- Quality preset:
- -dCompatibilityLevel= _level_
- PDF version (1.3, 1.4, 1.5, etc.).
- -dEmbedAllFonts= _bool_
- Embed all fonts.
- -dSubsetFonts= _bool_
- Subset embedded fonts.
- -sPAPERSIZE= _size_
- Paper size (a4, letter, etc.).
FAQ
What is the ps2pdf command used for?
ps2pdf converts PostScript files to PDF format using Ghostscript. It's a convenient wrapper around gs (Ghostscript) with PDF output options. The tool is commonly used in document processing pipelines and print workflows.
How do I run a basic ps2pdf example?
Run `ps2pdf [input.ps] [output.pdf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -dPDFSETTINGS= _setting_ do in ps2pdf?
Quality preset: