分页: 1 / 1

OpenBSD上将Man手册转成PDF

发表于 : 2013-05-09 16:26
acheng
在MISC看到的,发在这里分享一下(没验证):

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
Or even something like:

代码: 全选

  $ 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
On my notebook, the loop takes 15 seconds to complete, and that's
the whole user commands section of the reference manual...

发表于 : 2013-05-09 17:29
unreal
为啥要转PDF?如果在OB那就直接man,在其他OS就看在线手册;如果在没有互联网的地方,那就休息下呗。

Re: OpenBSD上将Man手册转成PDF

发表于 : 2013-05-09 20:52
f5b
验证过
# mandoc -Tpdf `man -w ksh` > ksh.pdf

挺好的。