Wrote a script in bash. Now im need to bring information into a text file,for example in PostScript, but there is one problem. I need to have a certain length of string in characters, and stretch or shrink the string on the entire width of the page layout. I have tried a2ps and enscript, but there is no such option. Please tell me the solution to this problem, maybe in Ghostscript. How to change letter spacing to fill the lines? Thanks in advance!
For example:
Input
aaa
bbbb
ccccccc
Output
a a a
b b b b
ccccccc
Use groff to do the adjustment, but groff will only adjust words, so use sed first to make each character a word. You can use groff to output postscript instead if you want different fonts or nicer printing or whatever.