How can you print a text file via gedit from the command line?

Posted by dan on Ask Ubuntu See other posts from Ask Ubuntu or by dan
Published on 2011-02-23T03:38:30Z Indexed on 2011/02/23 7:33 UTC
Read the original article Hit count: 368

Filed under:
|
|

I'd like to use gedit or some similar program just as a page formatter and pipe some text through it and onto the printer. | lpr just doesn't cut it in the presentation department. The printed output is subpar, even if I try to tinker with the margin and font size options. But I like the way text looks like when printed from gedit. Is there a way to have the best of both worlds and use a command line pipeline to print a text file with gedit-quality formatting?

© Ask Ubuntu or respective owner

Related posts about printer

Related posts about gedit