[Gllug] PDF creation

Alain Williams addw at phcomp.co.uk
Wed Jun 24 10:08:24 UTC 2009


On Wed, Jun 24, 2009 at 10:57:35AM +0100, t.clarke wrote:
> Hi
> 
> has anyone any experience of any programs to take a basic text file and
> 'overlay' it over a template to create a PDF file?
> 
> Currently we print invoices on pre-printed forms,  but need on occasions to
> email copies of invoices to customers.  The basic text of the invoices are
> retained on disc and we can easily email the plain text, but ideally we would
> like to be able to generate the whole invoice including the invoice framework
> and headings as a pdf.
> 
> I have taken a look at txt2pdf on the sanface.com website, but the documentation
> thereon does not seem to indicate whether or not it is capable of doing what I
> want,  or indeed how to do it!

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

-- 
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