{
    "mode": "man",
    "parameter": "ps2ascii",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/ps2ascii/1/json",
    "generated": "2026-06-12T03:49:53Z",
    "synopsis": "ps2ascii [ input.ps [ output.txt ] ]\nps2ascii input.pdf [ output.txt ]",
    "sections": {
        "NAME": {
            "content": "ps2ascii - Ghostscript translator from PostScript or PDF to ASCII\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ps2ascii [ input.ps [ output.txt ] ]\nps2ascii input.pdf [ output.txt ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "ps2ascii uses gs(1) to extract ASCII text from PostScript(tm) or Adobe Portable Document For‐‐\nmat (PDF) files. If no files are specified on the command line, gs reads from standard input;\nbut PDF input must come from an explicitly-named file, not standard input.  If no output file\nis specified, the ASCII text is written to standard output.\n\nps2ascii doesn't look at font encoding, and isn't very good at dealing with kerning,  so  for\nPostScript (but not currently PDF), you might consider pstotext (see below).\n",
            "subsections": []
        },
        "FILES": {
            "content": "Run  \"gs -h\" to find the location of Ghostscript documentation on your system, from which you\ncan get more details.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pstotext(1), http://www.research.digital.com/SRC/virtualpaper/pstotext.html\n",
            "subsections": []
        },
        "VERSION": {
            "content": "This document was last revised for Ghostscript version 9.55.0.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Artifex  Software,  Inc.  are  the  primary  maintainers  of  Ghostscript.   David  M.  Jones\n<dmjones@theory.lcs.mit.edu> made substantial improvements to ps2ascii.\n\n\n\n9.55.0                                    27 September 2021                              PS2ASCII(1)",
            "subsections": []
        }
    },
    "summary": "ps2ascii - Ghostscript translator from PostScript or PDF to ASCII",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pstotext",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pstotext/1/json"
        }
    ]
}