Man entry to pdf variant command
Man entry to pdf variant command
- Subject: Man entry to pdf variant command
- From: Laine Lee via AppleScript-Users <email@hidden>
- Date: Fri, 29 Jan 2021 14:05:37 -0600
- Thread-topic: Man entry to pdf variant command
A number of years ago, I started using a command to convert a Terminal manual
entry to a PDF using Preview. I think the first version was provided by Shane
Stanley and a version incorporating a dialog was later contributed by John
Delacour. Please correct me if I’m wrong. Anyway, I wanted to modify it to use
a result generated by a supplemental help command.
An example of the original, simple version would be the Terminal command:
man -t 'ffmpeg' | open -f -a /Applications/Preview.app
But because more help can be obtained by using “ffmpeg -h full”, I wanted to
try that instead of “ffmpeg”, but it doesn’t yield any results.
The closest version I’ve been able to get results with is:
ffmpeg -h full | groff -Tps | open -f -a /Applications/Preview.app
but the resulting pdf isn’t very well formatted. What might work better?
Thanks.
Laine Lee
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden