summaryrefslogtreecommitdiff
path: root/sys/man/1/ps2pdf
blob: a4b9a5dd1a9eaa9b843dbc3cf742883f5c2132cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
.TH PS2PDF 1
.SH NAME
ps2pdf, pdf2ps \- convert between PostScript and PDF
.SH SYNOPSIS
.B ps2pdf
[
.I gs-options
]
[
.I input-file
[
.I output-file
]
]
.PP
.B pdf2ps
[
.I gs-options
]
[
.I input-file
[
.I output-file
]
]
.SH DESCRIPTION
.I Ps2pdf
and
.I pdf2ps
convert from PostScript to PDF and back by invoking
.IR gs (1).
If
.I output-file
is not specified, they write to standard output.
If neither
.I input-file
nor
.I output-file
is not specified, they read from standard input and write to standard output.
.PP
The
.I gs-options
are passed to Ghostscript unaltered.
The most useful option to
.I ps2pdf
is
.BR -dCompatibilityLevel=\fIlevel ,
which sets the version of PDF to be written.
The default is
.BR 1.2 ;
.B 1.3
and
.B 1.4
are also possible.
Similarly, the most useful option to
.I pdf2ps
is
.BR -dLanguageLevel=\fIlevel ,
which sets the version of PostScript to be written.
The default is
.BR 2 ;
.B 1
and
.B 3
are also possible.
.PP
.I Ps2pdf
produces output competitive with
Adobe Distiller in most cases, and it
accepts all the embedded PDF-generation hints that Adobe Distiller does.
.PP
.I Pdf2ps
produces a PostScript file containing one large bitmap
per page.  For a more direct and smaller translation,
use Adobe Acrobat's
.B -toPostScript
command-line option.
.SH SOURCE
.B /rc/bin/ps2pdf
.br
.B /rc/bin/pdf2ps
.SH SEE ALSO
.IR gs (1)
.SH BUGS
.IR Gs 's
.I pdfwrite
sometimes emits bad PDF at the default level 1.2.
Adding
.BR '-dCompatibilityLevel=1.4'
should cure it.