From: Junio C Hamano Date: Sun, 07 Oct 2012 20:54:23 GMT Subject: Re: [Patch 0/5] Create single PDF for all HTML files Message-ID: <7vipamoveo.fsf@alter.siamese.dyndns.org> In-Reply-To: <20121006193205.GD3644@sigill.intra.peff.net> Jeff King writes: > Another way of doing this would be to format the individual troff > manpages into dvi or postscript, convert that into pdf, and then > concatenate that. Something like: > > for i in *.[157]; do > man -Tdvi -l "$i" >"$i.dvi" > dvipdfm "$i" > done > pdftk *.[157].pdf cat output full.pdf > > works for me, though obviously that does not handle some of the non-man > items you included. No idea on how the output compares to yours, but > it's something you may want to look at. Yes, that would be far more straight-forward and less error prone way to do this.