Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jun 2003 20:22:12 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Joan Picanyol i Puig <lists-freebsd-questions@biaix.org>, freebsd-questions@freebsd.org
Subject:   Re: printing man pages and source code (with vgrind + troff)
Message-ID:  <20030605182211.GA65909@falcon.midgard.homeip.net>
In-Reply-To: <20030605175751.GA62895@grummit.biaix.org>
References:  <20030605175751.GA62895@grummit.biaix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 05, 2003 at 07:57:51PM +0200, Joan Picanyol i Puig wrote:
> Hi,
> 
> I need to print many man pages and source code files, and I need the
> output to be in pdf and preferably with two pages per side (syntax
> colouring would be amazing:). So I've been looking at vgrind (+ ps2pdf?)
> for the source code, but I can't get what I want. As for the man pages,
> the semman2html
> 
> Can someone tell me what the one-liner for this is?

I would suggest using a2ps, and then pdf2ps to convert the postscript
file to PDF. a2ps can convert most types of textfiles into nice-looking
postscript. 

The one-liner would look something like:

a2ps -2 -o - /path/to/input/file | ps2pdf - outputfile.pdf

There are lots of flags you can give to a2ps to control the exact look
of the output.  Read the documentation if necessary.


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030605182211.GA65909>