PostScript left margin assistance requested
Happy New Year!
On a Mac OS X system, in the Terminal application, I can do, for example:
man -t mdls | open -f -a Preview
And the "man page" for the "mdls" command is opened in Preview, rather than displayed on the Terminal screen.
The problem is that the font is a little too small, and I want to make it bigger. The "-t" option of the "man" command says to produce PostScript, which Preview understands how to display, so I reasoned that I could do:
man -t mdls >mdls.ps
I then examined the resulting PostScript file and found many occurrences of things like "10/Times-Roman" and "10/Times-Bold". So I did a global search/replace and changed all "10/Times" to "12/Times". This worked fine, and the page is now more readable within Preview. Of course, manually editing a PS file every time is tedious, so I changed my original task to:
man -t mdls | sed 's/10\/Times/12\/Times/g' | open -f -a Preview
This works fine, too. The only problem -- and here's the real purpose of my question today -- is that the larger font causes some of the text to run off the right edge of the displayed page (it's apparently truncated). Stretching the Preview window wider does not help. But I notice that there's a fairly wide left margin. If I could figure out how to reduce the left margin, then my text should display just fine. OR... if I could figure out how to re-wrap the text, then it should also display fine.
So these are my questions:
1) Is it possible, given an existing PostScript file, to re-wrap the text so that it doesn't get truncated along the right edge of the page? If not, then...
2) How can I reduce the size of the left margin in the PS file to make more room for the larger text?
If it would help to see an example of the PostScript produced by the OSX "man" command, let me know... I'd be happy to show you.
Thanks!
B.
