.TH TROFF2IMG 1
.SH NAME
troff2img \- convert typesetter output to image
.SH SYNOPSIS
.B troff2img
.SH DESCRIPTION
.I Troff2img
reads
.IR troff (1)
output from standard input and converts it to
.IR image (6)
format.
.SH EXAMPLES
To preview a small image generated by
.I troff
for inclusion in a web page
.IP
.EX
eval `{doctype table.ms} | troff2img | page
.EE
.PP
To convert the image for viewing as a PNG image
.IP
.EX
eval `{doctype table.ms} | troff2img |
	topng > table.png
.EE
.SH "SEE ALSO"
.IR troff (1),
.IR image (6).
