SLDTOPPM(1)

๐Ÿ“ฆ
version 11.13.03 ยท 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

๐Ÿ’… SLDTOPPM โ€” the Sldtoppm User Manual, bestie edition ๐ŸŽ€

okay so sldtoppm lives in section 1 of the manual (General Commands Manual, iykyk) ๐Ÿ’– we're doing this.


โœจ NAME โœจ

sldtoppm โ€” convert an AutoCAD slide file to a PPM image ๐Ÿฆ‹


๐ŸŒธ SYNOPSIS ๐ŸŒธ

sldtoppm [-adjust] [-dir] [{-height|-ysize} s] [-info] [{-lib|-Lib}
name] [-scale s] [-verbose] [{-width|-xsize} s] [slidefile]

All options can be abbreviated to their shortest unique prefix. โœจ (yes u can be lazy, it's a vibe)


๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

This program is part of Netpbm(1). periodt.

<sldtoppm reads an AutoCADยฎ slide file and outputs a PPM image ๐Ÿ’ซ If you don't specify slidefile, it just reads input from Standard Input โ€” no big deal, she's flexible.

She uses the ppmdraw library to convert the vector and polygon information in the slide file to a raster. ๐Ÿ‘‘ If you want the tea on that package, go look at the file ppmdraw.h โ€” details live there.


๐ŸŽ€ OPTIONS ๐ŸŽ€

On top of the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), sldtoppm recognizes the following command line options, and bestie we are listing every single one:

  • -adjust โ€” if the display the slide file was created on had non-square pixels, and you process the slide with sldtoppm without -adjust, she's gonna warn you. And the warning is literally this:
Warning - pixels on source screen were non-square.

Specifying -adjust will correct the image width to compensate. ๐Ÿ’… It scales the width of the image so that pixels in the resulting PPM image are square โ€” which means circles show up as actual circles, not sad little ellipses. ๐Ÿ˜ญ The scaling happens in the vector domain, before scan converting the objects. So the results are, therefore, superior in appearance to what you'd get if you did the equivalent scaling with pamscale after the bitmap had already been created. glow up achieved โœจ

  • -dir โ€” the input is assumed to be an AutoCAD slide library file. A directory listing every slide in the library gets printed on standard error. ๐Ÿ“œ
  • -height size โ€” scales the image in the vector domain so it is size pixels in height. If you don't specify -width or -xsize, sldtoppm adjusts the width to preserve the pixel aspect ratio. ๐Ÿฆ‹
  • -info โ€” dumps the slide file header on standard error, showing the original screen size and aspect ratio among other info. ๐Ÿ‘€
  • -lib name โ€” extracts the slide with the given name from the slide library given as input. sldtoppm converts the specified name to UPPER CASE. ๐Ÿ”  (she's shouting, respectfully)
  • -Lib name โ€” extracts the slide with the given name from the slide library given as input. sldtoppm uses name in the case specified; it does not convert it to upper case. ๐ŸŽฏ case-sensitive queen
  • -scale s โ€” scales the image by factor s, which may be any floating point value greater than zero. sldtoppm does the scaling after aspect ratio adjustment, if any. And since she does the scaling in the vector domain, before rasterisation, the results look much better than running the output of sldtoppm through pamscale. no cap ๐Ÿ’ฏ
  • -verbose โ€” dumps the slide file header and lists every vector and polygon to Standard Error. she's telling you everything, she does not gatekeep ๐Ÿ˜Œ
  • -width size โ€” scales the image in the vector domain so it is size pixels wide. If you don't specify -height or -ysize, sldtoppm adjusts the height to preserve the pixel aspect ratio. ๐ŸŒˆ
  • -xsize size โ€” scales the image in the vector domain so it is size pixels wide. If you don't specify -height or -ysize, sldtoppm adjusts the height to preserve the pixel aspect ratio. (yes she's twin sisters with -width, iconic) ๐Ÿ‘‘
  • -ysize size โ€” scales the image in the vector domain so it is size pixels in height. If you don't specify -width or -xsize, sldtoppm adjusts the width to preserve the pixel aspect ratio. ๐Ÿ’ซ

๐Ÿ’€ LIMITATIONS ๐Ÿ’€

okay so this is the part where we're honest, bestie:

  • sldtoppm can convert only Level 2 slides. Level 1 format has been obsolete since the advent of AutoCAD Release 9 in 1987, and it was not portable across machine architectures. RIP to her but she's different now ๐Ÿชฆ
  • 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 -lib option, unless sldtoppm was built with character set conversion functions appropriate to the locale. ๐Ÿ˜ญ BUT. You can always retrieve slides from libraries regardless of the character set by using the -Lib option and specifying the precise name of the library member. ๐Ÿซถ And if you're unsure of the exact name, use the -dir option to list the slides in a library. Problem solved, we move ๐Ÿ’…

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

  • AutoCAD Reference Manual: Slide File Format
  • pamscale(1)
  • ppm(1)

๐ŸŒŸ AUTHOR ๐ŸŒŸ

John Walker Autodesk SA Avenue des Champs-Montants 14b CH-2074 MARIN Suisse/Schweiz/Svizzera/Svizra/Switzerland

    Usenet:kelvin@Autodesk.com
    Fax:038/33 88 15
    Voice:038/33 76 33

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. ๐Ÿคทโ™€๏ธ

AutoCAD and Autodesk are registered trademarks of Autodesk, Inc.


๐Ÿ“š DOCUMENT SOURCE ๐Ÿ“š

This manual page was generated by the Netpbm tool makeman from HTML source. The master documentation is at

       http://netpbm.sourceforge.net/doc/sldtoppm.html

and that's the whole page, bestie โ€” go convert some slides, you've got this ๐Ÿ’–

netpbm documentation, 10 October 1991 โ€” written by the netpbm girlies, dated 10 October 1991, and it's still giving ๐Ÿ’…โœจ bye ily ๐Ÿซถ๐ŸŽ€

๐Ÿ“ฆ where this page comes from