enscript - another useful prog. in the repos.

Discussion in 'all things UNIX' started by Ocky, Jan 17, 2010.

Thread Status:
Not open for further replies.
  1. Ocky

    Ocky Registered Member

    May 6, 2006
    George, S.Africa
    Stumbled across this one. Could be quite useful. Linux and the repos. are really amazing.

    "Enscript converts text files to PostScript or to other output lan‐
    guages. Enscript can spool the generated output directly to a speci‐
    fied printer or leave it to a file. If no input files are given,
    enscript processes the standard input stdin. Enscript can be extended
    to handle different output media and it has many options which can be
    used to customize the printouts."
    "enscript - convert text files to PostScript, HTML, RTF, ANSI, and over‐
    strikes" (fr. man enscript)

    I have tried the following:-
    1) Text to Postscript (ps)
    ~/Desktop$ enscript test.txt -f Courier10.5 -G --word-wrap -o Test.ps
    [ 1 pages * 1 copy ] left in Test.ps
    2 line(s) were wrapped
    results in this:-

    enscript Postscript.png

    2) My text file to html:-
    ~/Desktop$ enscript test.txt -f Courier10.5 -G -whtml -o Test.html
    output left in Test.html
    got this:-

    enscript Html.png

    There are so many options the mind boggles .. eg. the fancy print configs. Check man enscript. :)
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.