man to PDF

View: New views
2 Messages — Rating Filter:   Alert me  

man to PDF

by Michael(tm) Smith-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I notice that the "Manpage Documents" section[1] of the User Guide
says this:

  To print a high quality man page to a postscript printer:

  $ groff -mandoc -Tps asciidoc.1 | lpr

It might be worth mentioning that you can also print like this:

  $ man -l -Tps asciidoc.1 | lpr

And it might really be worth mentioning that you can create a PDF
like this:

  $ man -l -Tps asciidoc.1 | ps2pdf - asciidoc.pdf

ps2pdf is script provided in the Ghostscript distribution.

  --Mike

[1] http://www.methods.co.nz/asciidoc/userguide.html#X1

--
Michael(tm) Smith
http://people.w3.org/mike/
http://sideshowbarker.net/
_______________________________________________
asciidoc-discuss mailing list
asciidoc-discuss@...
http://lists.metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss

Re: man to PDF

by Stuart Rackham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Michael(tm) Smith wrote:

> I notice that the "Manpage Documents" section[1] of the User Guide
> says this:
>
>   To print a high quality man page to a postscript printer:
>
>   $ groff -mandoc -Tps asciidoc.1 | lpr
>
> It might be worth mentioning that you can also print like this:
>
>   $ man -l -Tps asciidoc.1 | lpr
>
> And it might really be worth mentioning that you can create a PDF
> like this:
>
>   $ man -l -Tps asciidoc.1 | ps2pdf - asciidoc.pdf
>
> ps2pdf is script provided in the Ghostscript distribution.

Thanks Mike, added in changeset
http://hg.sharesource.org/asciidoc/rev/2e7f25fcb7e9


>
>   --Mike
>
> [1] http://www.methods.co.nz/asciidoc/userguide.html#X1
>

Cheers, Stuart
_______________________________________________
asciidoc-discuss mailing list
asciidoc-discuss@...
http://lists.metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss