9srv Manual Collection/plan9/ps2pdf(1) 9srv Manual Collection/plan9/ps2pdf(1)
NAME
ps2pdf, pdf2ps - convert between PostScript and PDF

SYNOPSIS
ps2pdf [ gs-options ] [ input-file [ output-file ] ]

pdf2ps [ -e ] [ gs-options ] [ input-file [ output-file ] ]

DESCRIPTION
Ps2pdf and pdf2ps convert from PostScript to PDF and back by invoking gs(1). If output-file is not specified, they write to standard output. If neither input-file nor output-file is not specified, they read from standard input and write to standard output.

Under -e, pdf2ps emits Encapsulated Postscript (eps).

The gs-options are passed to Ghostscript unaltered. The most useful option to ps2pdf is -dCompatibilityLevel=level, which sets the version of PDF to be written. The default is 1.2; 1.3 and 1.4 are also possible. Similarly, the most useful option to pdf2ps is -dLanguageLevel=level, which sets the version of PostScript to be written. The default is 2; 1 and 3 are also possible.

Ps2pdf produces output competitive with Adobe Distiller in most cases, and it accepts all the embedded PDF-generation hints that Adobe Distiller does.

Pdf2ps produces a PostScript file containing one large bitmap per page. For a more direct and smaller translation, use Adobe Acrobat's -toPostScript command-line option.

SOURCE
/rc/bin/ps2pdf
/rc/bin/pdf2ps

SEE ALSO
gs(1)

BUGS
Gs's pdfwrite sometimes emits bad PDF at the default level 1.2. Adding '-dCompatibilityLevel=1.4' should cure it.

9srv Manual Collection/plan9/ps2pdf(1) Rev:  Wed May 30 18:51:23 BST 2012