All apps/GNU Enscript

GNU Enscript

enscript

A plain-text to PostScript, HTML, or RTF converter.

Runs as enscript|macOS, Linux, Windows|www.gnu.org

Command form

ai-draft · 2 tasks · 14 fields

Convert text or source files to PostScript with enscript, optionally with syntax highlighting, and write to a file or a printer. Fonts, filters, fancy headers, underlays and special escapes are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui enscript
Convert text to PostScriptExample values, fixed in this page — nothing here reaches a terminal
Basic
Input files*
file
Output file*
file
Highlight language
string
Columns per page
integer
Landscape
--landscape
Line numbers
-C
TasksEach one presets the form for one job
Convert to PostScript file
filesoutputhighlightcolumnslandscapeline_numbers
Print to a printer
filesprinterhighlightcopiesmedia
ParametersOnly these flags are editable in the form
Input files
Leave empty to read standard input.
path · positional 0 · repeatable
Output file
Write PostScript to this file instead of the default printer.
path
--output-p
Printer
Spool the output to this named printer.
string
--printer-P
Highlight language
Syntax-highlight using this language name (enscript --help-highlight lists them).
string
--highlight
Columns per page
integer
--columns
Landscape
boolean
--landscape-r
Portrait
boolean
--portrait-R
Line numbers
boolean
-C
No page header
boolean
--no-header-B
Page borders
boolean
--borders-j
Job title
string
--title-t
Tab size
integer
--tabsize-T
Media
Paper size name, for example A4 or Letter.
string
--media-MA4Letter
Copies
integer
--copies-n
SourcesEvery flag above is checked against these
man
-1, -2, -3, -4, -5, -6, -7, -8, -9, --columns=num Specify how many columns each page have. -a pages, --pages=pages Specify which pages are printed. -b header, --header=header Use the text header as a page header. -B, --no-header -C[start_line], --line-numbers[=start_line] -E[lang], --highlight[=lang] Highlight source code by creat…
manualbookworm

manpages.debian.org

Before it fills your prompt, Otty checks the installed enscript against its version. A form that does not match your version is not offered.