OpenBSD上将Man手册转成PDF
发表于 : 2013-05-09 16:26
在MISC看到的,发在这里分享一下(没验证):
If you must have some parts of it as PDF or printed out,
you can always use commands like these:
Or even something like:
On my notebook, the loop takes 15 seconds to complete, and that's
the whole user commands section of the reference manual...
If you must have some parts of it as PDF or printed out,
you can always use commands like these:
代码: 全选
$ mandoc -Tpdf `man -w ksh` > ksh.pdf
$ mandoc -Tps `man -w ksh` | lpr
代码: 全选
$ cd /usr/share/man/
$ sudo mkdir pdf1
$ sudo chown $USER:users pdf1
$ cd man1
$ for f in *.1; do mandoc -Tpdf $f > ../pdf1/${f%1}pdf; done
the whole user commands section of the reference manual...