Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert txt print file to ps or pdf

Status
Not open for further replies.

flubbard

Technical User
Joined
Jun 11, 2003
Messages
148
Location
US
I have a preformatted text print file that I would like to convert to a pdf. I am thinking that I should be able to use lp or a similar device and redirect output to a .ps file and then use ps2pdf to convert the file to a pdf for users to view on their screen.

Is there a way to direct lp to create a print file or an alternative that I'm missing.

Any help would be appreciated --- Thanks!
 

It would help to know what printing subsystem you are using, CUPS, LPR-ng, BSD-LPR, etc. but all of them have a way to set up a print filter, which you can use to insert ps2pdf into the process.
 
I am using LPR on RedHat 7.2.
 
I have modified my approach a little. I think that I can just run through LPR-ng and print from the server instead of generating the pdf file for the users. Is there a way, using LPR-ng, to specify that a text file should print landscape instead of portrait? -- Thanks
 
Update - I can print landscape using enscript -r
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top