[Gllug] PDF creation

Alain Williams addw at phcomp.co.uk
Wed Jun 24 15:28:15 UTC 2009


On Wed, Jun 24, 2009 at 02:04:28PM +0100, - Tethys wrote:
> On Wed, Jun 24, 2009 at 11:08 AM, Alain Williams <addw at phcomp.co.uk> wrote:
> 
> > Use groff, you can then get it to do a bit of nice formatting for you:
> >
> > groff -ma4 -mm  -etpsR file.mm > $Tmpf.ps
> > ps2pdf $Tmpf.ps $Tmpf.pdf
> 
> This is indeed more or less exactly how my invoices are generated
> (I use a bit of sed to populate a template input file with the
> invoice data, and another bit of sed magic after layout to add
> a watermark to the PostScript, before converting to PDF). Out of
> interest, why use -mm macros? I've always used -ms, but that's
> just because that's what I was brought up with.  A brief glance
> doesn't seem to show much substantial difference between the two.
> Is it just a BSD vs AT&T heritage thing?

Yes: After Unix Edition 7 I spent many years with System III & then System V
& stuff from AT&T - who used the mm macros. I still use them for letter writing.

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
Past chairman of UKUUG: http://www.ukuug.org/
#include <std_disclaimer.h>
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list