.TL Sldtoppm User Manual .SH 1 sldtoppm .LP Updated: 10 October 1991 .br Table Of Contents .SH 2 NAME .LP sldtoppm - convert an AutoCAD slide file to a PPM image .SH 2 SYNOPSIS .LP \fBsldtoppm\fR [\fB-adjust\fR] [\fB-dir\fR] [{\fB-height\fR|\fB-ysize\fR} \fIs\fR] [\fB-info\fR] [{\fB-lib\fR|\fB-Lib\fR} \fIname\fR] [\fB-scale\fR \fIs\fR] [\fB-verbose\fR] [{\fB-width\fR|\fB-xsize\fR} \fIs\fR] [\fIslidefile\fR] .LP All options can be abbreviated to their shortest unique prefix. .SH 2 DESCRIPTION .LP .LP This program is part of Netpbm. .LP \fBsldtoppm\fR reads an AutoCAD® slide file and outputs a PPM image. If you don't specify \fIslidefile\fR, \fBsldtoppm\fR reads input from Standard Input. \fBsldtoppm\fR uses the \fBppmdraw\fR library to convert the vector and polygon information in the slide file to a raster; see the file \fBppmdraw.h\fR for details on this package. .SH 2 OPTIONS .LP .RS .IP "\fB-adjust\fR" If the display on which the slide file was created had non-square pixels, when you process the slide with \fBsldtoppm\fR and don't specify \fB-adjust\fR, \fBsldtoppm\fR issues the following warning; Warning - pixels on source screen were non-square. .LP Specifying \fB-adjust\fR will correct the image width to compensate. Specifying the \fB-adjust\fR option causes \fBsldtoppm\fR to scale the width of the image so that pixels in the resulting portable pixmap are square (and hence circles appear as true circles, not ellipses). The scaling is performed in the vector domain, before scan converting the objects. The results are, therefore, superior in appearance to what you'd obtain were you to perform the equivalent scaling with \fBpamscale\fR after the bitmap had been created. .IP "\fB-dir\fR" The input is assumed to be an AutoCAD slide library file. A directory listing each slide in the library is printed on standard error. .IP "\fB-height\fR \fIsize\fR" Scales the image in the vector domain so it is \fIsize\fR pixels in height. If you don't specify \fB-width\fR or \fB-xsize\fR, \fBsldtoppm\fR adjusts the width to preserve the pixel aspect ratio. .IP "\fB-info\fR" Dump the slide file header on standard error, displaying the original screen size and aspect ratio among other information. .IP "\fB-lib\fR \fIname\fR" Extracts the slide with the given \fIname\fR from the slide library given as input. \fBsldtoppm\fR converts the specified \fIname\fR to upper case. .IP "\fB-Lib\fR\fI name\fR" Extracts the slide with the given \fIname\fR from the slide library given as input. \fBsldtoppm\fR uses \fIname\fR in the case specified; it does not convert it to upper case. .IP "\fB-scale\fR \fIs\fR" Scales the image by factor \fIs\fR, which may be any floating point value greater than zero. \fBsldtoppm\fR does the scaling after aspect ratio adjustment, if any. Since it does the scaling in the vector domain, before rasterisation, the results look much better than running the output of \fBsldtoppm\fR through \fBpamscale\fR. .IP "\fB-verbose\fR" Dumps the slide file header and lists every vector and polygon to Standard Error. .IP "\fB-width\fR \fIsize\fR" Scales the image in the vector domain so it is \fIsize\fR pixels wide. If you don't specify \fB-height\fR or \fB-ysize\fR, \fBsldtoppm\fR adjusts the height to preserve the pixel aspect ratio. .IP "\fB-xsize\fR \fIsize\fR" Scales the image in the vector domain so it is \fIsize\fR pixels wide. If you don't specify \fB-height\fR or \fB-ysize\fR, \fBsldtoppm\fR adjusts the height to preserve the pixel aspect ratio. .IP "\fB-ysize\fR \fIsize\fR" Scales the image in the vector domain so it is \fIsize\fR pixels in height. If you don't specify \fB-width\fR or \fB-xsize\fR, \fBsldtoppm\fR adjusts the width to preserve the pixel aspect ratio. .RE .SH 2 LIMITATIONS .LP .LP \fBsldtoppm\fR can convert only Level 2 slides. Level 1 format has been obsolete since the advent of AutoCAD Release 9 in 1987, and was not portable across machine architectures. .LP Slide library items with names containing 8 bit (such as ISO) or 16 bit (Kanji, for example) characters may not be found when chosen with the \fB-lib\fR option unless \fBsldtoppm\fR was built with character set conversion functions appropriate to the locale. You can always retrieve slides from libraries regardless of the character set by using the \fB-Lib\fR option and specifying the precise name of library member. Use the \fB-dir\fR option to list the slides in a library if you're unsure of the exact name. .SH 2 SEE ALSO .LP AutoCAD Reference Manual: \fISlide File Format\fR, \fBpamscale\fR, \fBppm\fR .SH 2 AUTHOR .LP .DS L John Walker Autodesk SA Avenue des Champs-Montants 14b CH-2074 MARIN Suisse/Schweiz/Svizzera/Svizra/Switzerland \fBUsenet:\fRkelvin@Autodesk.com \fBFax:\fR038/33 88 15 \fBVoice:\fR038/33 76 33 .DE .LP Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, without any conditions or restrictions. This software is provided "as is" without express or implied warranty. .LP AutoCAD and Autodesk are registered trademarks of Autodesk, Inc. .br \l'5i' .SH 2 Table Of Contents .LP .IP \(bu NAME .IP \(bu SYNOPSIS .IP \(bu DESCRIPTION .IP \(bu OPTIONS .IP \(bu BUGS .IP \(bu SEE ALSO .IP \(bu AUTHOR .LP