[KLUG Members] text2pdf WAS :no subject

Adam Tauno Williams awilliam at whitemice.org
Sun Sep 12 16:32:42 EDT 2004


> > I'm unclear what you are converting.  Are you converting text files
> > to PDF, or PS files to PDF?
> > We regularly (dozens of times a day) convert 100+ page documents
> > from
> > text to PDF with mpage/a2ps/ps2pdf.
> Sorry if I was unclear, I have plain-text/ascii files and I want PDFs.
> Currently I am going at it using 
> a2ps   change the ascii to pretty PostScript
> ps2pdf change PostScript to PDF

$ a2ps -1 --output=- /var/log/messages | ps2pdf14 - messages.pdf
[/var/log/messages (plain): 399 pages on 399 sheets]
[Total: 399 pages on 399 sheets] sent to the standard output
[9712 lines wrapped]
$ ls -l messages.pdf
-rw-r--r--    1 root     root      1924190 Sep 12 15:30 messages.pdf


> And if possable I would like to do it from the command line and/or
> scripts.  I will look into mpage, I don't recognize the name.

Don't bother.  mpage is the precursor to a2ps and hasn't been supported
for a long time,  we only use it for historical reasons.



More information about the Members mailing list