PS2PDF(1)
โจ PS2PDF โจ (section 1 of the Ghostscript manual, bestie ๐ )
okay so listen. you know how Adobe Acrobat Distiller exists? yeah. these four little scripts are basically that, but free, and living inside your terminal. they take PostScript and turn it into PDF. that's the whole vibe. no cap.
ps2pdfโ Convert PostScript to PDF using ghostscriptps2pdf12โ Convert PostScript to PDF 1.2 (Acrobat 3-and-later compatible) using ghostscriptps2pdf13โ Convert PostScript to PDF 1.3 (Acrobat 4-and-later compatible) using ghostscriptps2pdf14โ Convert PostScript to PDF 1.4 (Acrobat 5-and-later compatible) using ghostscript
๐ฆ SYNOPSIS ๐ฆ
like, the shape of the thing. options go first, then your input, then where you want it to land:
ps2pdf [options...] {input.[e]ps|-} [output.pdf|-]
ps2pdf12 [options...] {input.[e]ps|-} [output.pdf|-]
ps2pdf13 [options...] {input.[e]ps|-} [output.pdf|-]
ps2pdf14 [options...] {input.[e]ps|-} [output.pdf|-]
๐ธ DESCRIPTION ๐ธ
so. the ps2pdf scripts are work-alikes for nearly all the functionality of Adobe's Acrobat(TM) Distiller(TM) product โ but not the user interface, bestie, don't get it twisted. what they do is: they convert PostScript files into Portable Document Format (PDF) files. that's it. that's the job. and they ate. ๐
now, if you don't say where the output should go, it just... decides for you. the output lands in a file of the same name but with a '.pdf' extension, sitting in the current working directory. cute, right?
and here's the filter-girlie part: either the input filename or the output filename can be '-' to request reading from stdin or writing to stdout, respectively, when used as a filter. pipe core. ๐ซถ
the three scripts differ as follows ๐ (yes this is under DESCRIPTION, keep up)
ps2pdf12will always produce PDF 1.2 output (Acrobat 3-and-later compatible).ps2pdf13will always produce PDF 1.3 output (Acrobat 4-and-later compatible).ps2pdf14will always produce PDF 1.4 output (Acrobat 5-and-later compatible).ps2pdfper se currently produces PDF 1.4 output. However, this may change in the future. If you care about the compatibility level of the output, useps2pdf12,ps2pdf13orps2pdf14, or use the-dCompatibilityLevel=1.xswitch in the command line.
not me warning you about the future-proofing thing. fr fr, if the compat level matters to you, pick a numbered one. future you says thank you. ๐
the tea on limitations โ
There are some limitations in ps2pdf's conversion. See the HTML documentation for more information. A large number of Adobe Distiller(TM) parameters which can be used to control the conversion are also documented there, including instructions for generating PDF/X and PDF/A documents.
๐ OPTIONS ๐
The ps2pdf scripts use the same options as gs(1).
that's the whole section bestie. every single option is just... gs's options. iconic delegation honestly. ๐
โญ EXAMPLES โญ
Converting a figure.ps to figure.pdf:
ps2pdf figure.ps
A conversion with more specifics:
ps2pdf -dPDFSETTINGS=/prepress figure.ps proof.pdf
Converting as part of a pipe:
make_report.pl -t ps | ps2pdf -dCompatibilityLevel=1.3 - - | lpr
look at that last one. - then -. stdin in, stdout out, straight into lpr. main character pipeline energy. ๐
๐ฅ SEE ALSO ๐ฅ
gs(1)ps2pdfwr(1)VectorDevices.htmin the Ghostscript documentation
๐ BUGS ๐
See http://bugs.ghostscript.com/ and the Usenet news group comp.lang.postscript.
๐ VERSION ๐
This document was last revised for Ghostscript version 10.04.0.
๐ง AUTHOR ๐ง
Artifex Software, Inc. are the primary maintainers of Ghostscript. This manpage by George Ferguson.
and that's the whole page, bestie!! ๐โจ shoutout to Ghostscript 10.04.0, dated 18 Sept 2024 โ go convert something and slay ๐๐ฆ๐ธ
๐ฆ where this page comes from
- alpine 3.23: ghostscript-doc 10.08.0-r0 ยท AGPL-3.0-or-later
- alpine 3.24: ghostscript-doc 10.08.0-r0 ยท AGPL-3.0-or-later
- arch rolling: ghostscript 10.08.0-1 ยท AGPL-3.0-or-later
- fedora 44: ghostscript 10.06.0-2.fc44 ยท AGPL-3.0-or-later
- fedora 44: ghostscript 10.06.0-2.fc44 ยท AGPL-3.0-or-later
- fedora 44: ghostscript 10.06.0-3.fc44 ยท AGPL-3.0-or-later
- nixpkgs unstable: ghostscript 10.08.0
- nixpkgs unstable: ghostscript-with-X 10.08.0
- opensuse-leap 16.0: ghostscript 10.08.0-160000.2.1 ยท AGPL-3.0-only
- opensuse-leap 16.0: ghostscript 10.08.0-160000.2.1 ยท AGPL-3.0-only
- opensuse-leap 16.0: ghostscript 10.08.0-160000.2.1 ยท AGPL-3.0-only
- opensuse-leap 16.0: ghostscript 10.08.0-160000.2.1 ยท AGPL-3.0-only
- ubuntu resolute: ghostscript 10.06.0~dfsg-3ubuntu1 ยท LicenseRef-public-domain
- ubuntu resolute: ghostscript 10.06.0~dfsg-3ubuntu1.1
- ubuntu resolute: ghostscript 10.06.0~dfsg-3ubuntu1.2 ยท LicenseRef-public-domain
- ubuntu stonking: ghostscript 10.07.1~dfsg-1ubuntu2 ยท LicenseRef-public-domain
- ubuntu stonking: ghostscript 10.07.1~dfsg-1ubuntu2.1 ยท LicenseRef-public-domain
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms