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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
|
.\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH SAM2P 1 "Januar 23, 2005"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
sam2p \- program to convert raster images to postscript, pdf, and
other formats
.SH SYNOPSIS
.B sam2p
.RI [ options ] " infile" " outfile"
.br
.B sam2p
.RI [ options ] " jobfile"
.SH DESCRIPTION
This manual page documents briefly the
.B sam2p
command.
It was written for the Debian distribution
because the original program does not have a manual page.
The complete documentation can be found in
.B /usr/share/doc/sam2p/README.gz
.PP
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
.\" respectively.
\fBsam2p\fP is a program that converts many
raster (bitmap) image formats into Adobe PostScript or PDF files and several
other formats.
The images are not vectorized.
.B sam2p
gives full control to
the user to specify standards-compliance, compression, and bit depths.
.PP
\fBsam2p\fP can operate in two modes: one-liner mode and job mode.
In job mode the user has to write a ``job'' file which specifies
the conversion parameters and allows full control of all aspects of the
final output. This manpage deals only with one-liner mode, see
.B /usr/share/doc/sam2p/README.gz
for details on job mode.
.SH EXAMPLES
To convert an image file to .eps, use:
sam2p infile.gif outfile.eps
The output format is guessed from the file extension. Optionally, the
output format also can be specified as option or as prefix to the output file.
For example, the following commands produce postscript level 3:
sam2p infile.gif psl3:outfile.ps
sam2p -ps:3 infile.gif outfile.ps
.B sam2p
can include its own (zip and lzw) decompression filter in Postscript
files, allowing better compression than normally supported by
Postscript level 1:
sam2p -1 -c:zip infile.gif outfile.ps
sam2p -1 -c:lzw infile.gif outfile.ps
.SH OPTIONS
.TP
.B \-1, \-ps:1, psl1:
produce Postscript Level 1
.TP
.B \-1c, \-ps:1c, pslc:
produce Postscript Level 1 with the CMYK and `colorimage' extension
.TP
.B \-2, \-ps:2, psl2:
produce Postscript Level 2 (default for postscript)
.TP
.B \-3, \-ps:3, psl3:
produce Postscript Level 3
.TP
.B \-pdf:b0, pdfb1.0:
produce PDF version 1.0 (BI inline image)
.TP
.B \-pdf:b2, pdfb1.2:
produce PDF version 1.2 (BI inline image) (default for PDF)
.TP
.B \-pdf:0, pdf1.0:
produce PDF version 1.0 (XObject image)
.TP
.B \-pdf:2, pdf1.2:
produce PDF version 1.2 (XObject image)
.sp 1
.TP
.B \-e:0, \-e:none
don't scale
.TP
.B \-e, \-e:1, \-e:scale
scale image to fit page
.TP
.B \-e:rot, \-e:rotate
scale and rotate image to fit page (default if output filename has .ps extension)
.sp 1
.TP
.B \-m:\fIdimen\fP
set all page margins to \fIdimen\fP
.br
\fIdimen\fP can have one of the following units (as in TeX): bp, in, pt, pc, dd,
cc, sp, cm, mm
.TP
.B \-m:\fIspec\fP:\fIdimen\fP
set \fIspec\fP margin(s) to \fIdimen\fP (\fIspec\fP can be \fBl\fP, \fBr\fP,
\fBt\fP, \fBb\fP, \fBv\fP (top and bottom), \fBh\fP (left and right))
.TP
.B \-m:dpi:\fIres\fP
set output EPS or PDF to resolution \fIres\fP dpi
.sp 1
.TP
.B \-c:none, \-c:lzw, \-c:zip, \-c:rle, \-c:fax, \-c:dct, \-c:jpeg
select compression type (support depends on output format)
.sp 1
.TP
.B \-j:quiet
print only error and fatal error messages, suppress warnings, notices etc.
Must be put at the beginning of the command line to suppress initial banners, too.
.sp 1
.TP
.B \-\-
If not the last argument:
treat all further arguments as files (required if a filename
contains a colon or starts with a minus)
.br
If the last argument: use input filename as ouput filename (i.e. overwrite input
file).
.SH SUPPORTED FILE FORMATS
.TP
.B Input formats:
PNM, PBM, PGM, PPM, XPM, GIF, LBM, TGA, PCX,
.br
JPEG (requires djpeg from package libjpeg-progs),
.br
TIFF (requires tifftopnm from package netpbm),
.br
PNG (requires pngtopnm from package netpbm),
.br
PS, EPS, PDF (require ghostscript)
.TP
.B Output formats:
XWD, BMP, PNG, TIFF6, JPEG, PNM, GIF89a, XPM, PS (levels 1,2,3),
EPS (levels 2,3), PDF (1.0 and 1.2)
.sp 2
For some formats,
.B sam2p
supports transparency.
See the README file for more info.
.SH SEE ALSO
The program is documented fully in
.B /usr/share/doc/sam2p/README.gz
.SH AUTHOR
sam2p was written by Szab Pter <pts@fazekas.hu>.
.PP
This manual page was written by Stefan Fritsch <sf@sfritsch.de>,
for the Debian project (but may be used by others under the
terms of the GNU General Public License, Version 2).
|