Reputation: 69
So, I have a text file, embedded with troff formatting commands. However, my printer is currently broken, but I want to see what the file looks like, so I can make sure everything is correct. Is there a program that can interpret the commands and show me a file preview? It has to exist. I probably sound really dumb right now, but I cant find info on this matter. somewhere on the Internet it said to use proof or page, but neither of those commands exist on my system.
Upvotes: 1
Views: 1114
Reputation: 31
troff
allows you to output to an ASCII text file with:
troff -a x.roff
If you have groff
installed, then you can convert it to:
groff -Tascii x.roff > x.txt
groff -Thtml x.roff > x.html
groff -Tdvi x.roff > x.dvi
If you have ps2pdf
, you can try to convert your postscript file to a PDF (ps2pdf x.ps
).
There are also online services to convert a ps file to a PDF; such as http://www.ps2pdf.com.
Upvotes: 3