In Unix, the enscript command changes a text file to PostScript format file of the text file and save it as , you would enter. By default, enscript only makes postscipt file (ps). Your command line is missing two flags: small -p and capital -P. The command line must be. Hi, I have ps file, I want to print with diffrent font, is it possible to print like this? enscript -fCourier9 how to find enscript is installed or not? if I enter man.
|Published (Last):||15 May 2010|
|PDF File Size:||2.44 Mb|
|ePub File Size:||17.79 Mb|
|Price:||Free* [*Free Regsitration Required]|
The command line must be like this: Isn’t there any inbuilt bash programme or command to do this? It seems to be not documented, but you can easily convert text files into PDF files by using this enscrjpt On a BSD-compatible system, to convert and print the text file myfile. In the directory where your file is located run: Please note that you need texlive-latex-base package to be installed first, before you can convert to PDF format.
Is there a reliable command which will work in both cases with or without making the PDF printer default? Post as a guest Name. This is on trusty.
enscript (1) – Linux Man Pages
PostScript document text conforming DSC level 3. I found that -o might be the cause, but don’t understand why it is. In gedit, os a file gives an option of printing to file where the file can be saved as a pdf. A similar tool, which has been around for a long time, is a2ps.
GNU Enscript Frequently Asked Questions (FAQ)
To get you started first install pandoc converter:. There are more options to enscripte. Why does -PPDF not make it create pdf file directly? Sign up using Facebook.
An example of using a2ps would help. I was wondering why the following generates a ps file not a pdf file? Zanna 50k 13 You can use nescript in standalone mode, this means that in absence of an OpenOffice listener, it will start its own:. Compared to the other answers, pandoc plus texlive produces bad output not respecting newlinesand is overkill and confusing to boot. Email Required, but never shown. It seems to be not documented, but you can easily convert text files into PDF files by using this syntax:.
The [switches] are optional settings, as follows:. Welcome to Ask Ubuntu hwc!
You can always edit your answer by clicking on edit right underneath the body of enxcript answer. To get you started first install pandoc converter: Or, in the case of paps, the resulting PDF does not have a text layer.