Printers :: Convert a text file to postscript



Is there a program on DSL that will convert a text file to postscript?

Thank you!

Not directly, but there is one to convert an *.rtf file into a *.ps file.  So what you can do is open your text file in Ted (which lets you open it but might give you a warning that it isn't an rtf file).  You'll need to show all files to see the file you want.  Then save it as an rtf file, and run the rft2ps.sh script to convert it.  You need the name of the existing file and the new file to create as arguments to the script:

/KNOPPIX/usr/share/ted/Ted/rtf2ps.sh myfile.rtf myfile.ps

Then you can view your new postscript file using ghostscript:

gs myfile.ps

From the command line we have:

$ a2ps -o myfile.ps myfile.txt

This will convert the text file myfile.txt into postscript myfile.ps

You can also view postscript files by using  gvu

Hi Clacker & Roberts,
Thank you for your help!


original here.