找了好久,终于找到了,谢谢这位朋友的文章:

http://www.freetstar.com/index.php/convert-man-to-pdf

命令

1man -t bash |ps2pdf - bash.pdf

 

解释:

man -t   将man手册转换成groff格式,输出到标准输出

ps2pdf -bash.pdf  将标准输入的文件转换成bash.pdf文件

用管道链接两个命令。一切就是这么简单

再举例,如果您想将man本身输出成pdf格式文件

1man -t man|ps2pdf - man.pdf

 

参考:http://blogs.gnome.org/happyaron/2010/09/13/convert-man-page-to-pdf/