To convert a text file to postscript format is easy with groff:
groff -Tps file >file.ps But what if the input file is utf-8 (with non English characters in it)? How can you specify the encoding to groff or do you have to pipe the file through some other command?
I put my hands on gfxboot that uses Postscript for it's scripts. I'm absolutely new to Postscript, but I got the point and almost did everything I wanted, but I stumbled upon one thing, I need to convert string to upper case. The script contains /tolower function, but I do not get how it works.
I have a Postscript file that I can't print because it has too many fonts for my printer (a LaserJet 5M with 14MB memory). I might be able to display it a page at a time and do a screen capture of each page, but that gets pretty tedious and also has the problem that the pages get cluttered up with control information.
I have a string, something like en_US, fr_FR, ru_RU, etc. I need to extract the last two capital letters after the underscore. As you understand there's a fixed number of characters everywhere, so it is probably possible to extract the last two chars.
This is a gfxboot script so it's not Postscript Level 2 and 'search' operator doesn't work.
I upgraded from fedora 17 to fedora 20.
Samba use to support running a script for a printer but now it doesn't
pretty much what I had my script do was take a postscript file generated using an hp printer driver and convert it to a pdf file and used "lp" to print the pdf file to the real printer.