{
    "mode": "man",
    "parameter": "sldtoppm",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/sldtoppm/1/json",
    "generated": "2026-10-22T22:01:54Z",
    "synopsis": "sldtoppm  [-adjust]  [-dir] [{-height|-ysize} s] [-info] [{-lib|-Lib} name] [-scale s] [-ver‐\nbose] [{-width|-xsize} s] [slidefile]\nAll options can be abbreviated to their shortest unique prefix.",
    "sections": {
        "NAME": {
            "content": "sldtoppm - convert an AutoCAD slide file to a PPM image\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "sldtoppm  [-adjust]  [-dir] [{-height|-ysize} s] [-info] [{-lib|-Lib} name] [-scale s] [-ver‐\nbose] [{-width|-xsize} s] [slidefile]\n\nAll options can be abbreviated to their shortest unique prefix.\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This program is part of Netpbm(1).\n\nsldtoppm reads an AutoCAD® slide file and outputs a PPM image.  If you don't  specify  slide‐\nfile, sldtoppm reads input from Standard Input.  sldtoppm uses the ppmdraw library to convert\nthe  vector and polygon information in the slide file to a raster; see the file ppmdraw.h for\ndetails on this package.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "In addition to the options common to all programs based on libnetpbm  (most  notably  -quiet,\nsee  Common Options ), sldtoppm recognizes the following command line options:\n\n\n",
            "subsections": [
                {
                    "name": "-adjust",
                    "content": "If  the  display  on  which the slide file was created had non-square pixels, when you\nprocess the slide with sldtoppm and don't specify -adjust, sldtoppm issues the follow‐\ning warning;\n\nWarning - pixels on source screen were non-square.\n\nSpecifying -adjust will correct the image width to compensate.  Specifying the -adjust option\ncauses sldtoppm to scale the width of the image so that pixels in the resulting PPM image are\nsquare (and hence circles appear as true circles, not ellipses).  The scaling is performed in\nthe vector domain, before scan converting the objects.  The results are, therefore,  superior\nin  appearance  to what you'd obtain were you to perform the equivalent scaling with pamscale\nafter the bitmap had been created.\n\n"
                },
                {
                    "name": "-dir",
                    "content": "slide in the library is printed on standard error.\n\n"
                },
                {
                    "name": "-height _",
                    "content": "Scales  the  image  in the vector domain so it is size pixels in height.  If you don't\nspecify -width or -xsize, sldtoppm adjusts the width to preserve the pixel aspect  ra‐\ntio.\n\n"
                },
                {
                    "name": "-info",
                    "content": "aspect ratio among other information.\n\n"
                },
                {
                    "name": "-lib _",
                    "content": "Extracts the slide with the given name from the slide library given  as  input.   sld‐\ntoppm converts the specified name to upper case.\n\n"
                },
                {
                    "name": "-Lib _",
                    "content": "Extracts  the  slide  with the given name from the slide library given as input.  sld‐\ntoppm uses name in the case specified; it does not convert it to upper case.\n\n"
                },
                {
                    "name": "-scale _",
                    "content": "Scales the image by factor s, which may be any floating point value greater than zero.\nsldtoppm does the scaling after aspect ratio adjustment, if any.  Since  it  does  the\nscaling  in the vector domain, before rasterisation, the results look much better than\nrunning the output of sldtoppm through pamscale.\n\n"
                },
                {
                    "name": "-verbose",
                    "content": "Dumps the slide file header and lists every vector and polygon to Standard Error.\n\n"
                },
                {
                    "name": "-width _",
                    "content": "Scales the image in the vector domain so it is size pixels wide.  If you don't specify\n-height or -ysize, sldtoppm adjusts the height to preserve the pixel aspect ratio.\n\n"
                },
                {
                    "name": "-xsize _",
                    "content": "Scales the image in the vector domain so it is size pixels wide.  If you don't specify\n-height or -ysize, sldtoppm adjusts the height to preserve the pixel aspect ratio.\n\n"
                },
                {
                    "name": "-ysize _",
                    "content": "Scales the image in the vector domain so it is size pixels in height.   If  you  don't\nspecify  -width or -xsize, sldtoppm adjusts the width to preserve the pixel aspect ra‐\ntio.\n\n\n\n"
                }
            ]
        },
        "LIMITATIONS": {
            "content": "sldtoppm can convert only Level 2 slides.  Level 1 format has been obsolete since the  advent\nof AutoCAD Release 9 in 1987, and was not portable across machine architectures.\n\nSlide  library items with names containing 8 bit (such as ISO) or 16 bit (Kanji, for example)\ncharacters may not be found when chosen with the -lib option unless sldtoppm was  built  with\ncharacter set conversion functions appropriate to the locale.  You can always retrieve slides\nfrom  libraries  regardless  of the character set by using the -Lib option and specifying the\nprecise name of library member.  Use the -dir option to list  the  slides  in  a  library  if\nyou're unsure of the exact name.\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "AutoCAD Reference Manual: Slide File Format, pamscale(1), ppm(1)\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "John Walker\nAutodesk SA\nAvenue des Champs-Montants 14b\nCH-2074 MARIN\nSuisse/Schweiz/Svizzera/Svizra/Switzerland\nUsenet:kelvin@Autodesk.com\nFax:038/33 88 15\nVoice:038/33 76 33\n\n\nPermission  to  use, copy, modify, and distribute this software and its documentation for any\npurpose and without fee is hereby granted, without  any  conditions  or  restrictions.   This\nsoftware is provided \"as is\" without express or implied warranty.\n\nAutoCAD and Autodesk are registered trademarks of Autodesk, Inc.\n",
            "subsections": []
        },
        "DOCUMENT SOURCE": {
            "content": "This  manual  page  was  generated by the Netpbm tool 'makeman' from HTML source.  The master\ndocumentation is at\n\nhttp://netpbm.sourceforge.net/doc/sldtoppm.html\n\nnetpbm documentation                       10 October 1991                   Sldtoppm User Manual(1)",
            "subsections": []
        }
    },
    "summary": "sldtoppm - convert an AutoCAD slide file to a PPM image",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "If the display on which the slide file was created had non-square pixels, when you process the slide with sldtoppm and don't specify -adjust, sldtoppm issues the follow‐ ing warning; Warning - pixels on source screen were non-square. Specifying -adjust will correct the image width to compensate. Specifying the -adjust option causes sldtoppm to scale the width of the image so that pixels in the resulting PPM image 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 pamscale after the bitmap had been created."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "slide in the library is printed on standard error."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "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 ra‐ tio."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "aspect ratio among other information."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Extracts the slide with the given name from the slide library given as input. sld‐ toppm converts the specified name to upper case."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Extracts the slide with the given name from the slide library given as input. sld‐ toppm uses name in the case specified; it does not convert it to upper case."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "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. Since it does the scaling in the vector domain, before rasterisation, the results look much better than running the output of sldtoppm through pamscale."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Dumps the slide file header and lists every vector and polygon to Standard Error."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "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."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "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."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "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 ra‐ tio."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "pamscale",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pamscale/1/json"
        },
        {
            "name": "ppm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ppm/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Convert an AutoCAD slide file to a PPM image.",
        "examples": [
            {
                "description": "Convert an SLD file to a PPM image",
                "command": "sldtoppm {{path/to/input.sld}} > {{path/to/output.ppm}}"
            },
            {
                "description": "Compensate for non-square pixels by scaling the width of the image",
                "command": "sldtoppm {{-a|-adjust}} {{path/to/input.sld}} > {{path/to/output.ppm}}"
            }
        ]
    }
}