-----BEGIN PGP SIGNED MESSAGE-----
Print Dude wrote:
You should easily be able to build a print filter script that takes stdin and
pipes it through a2ps or enscript to build postscript from the ascii source.
Pipe the results through ps2pdf to build a pdf, and take the resulting file
and feed it into your output management database.
a2ps -o - | ps2pdf - targetfile.pdf
enscript -o - | ps2pdf - targetfile.pdf
followed by the logic to move targetfile.pdf to the OM database
If your OM db loader can read pdf's from stdin, then you can do this all in
one pipeline. Something like
a2ps -o - | ps2pdf - - | loadOMdatabase
enscript -o - | ps2pdf - - | loadOMdatabase
See a2ps(1), enscript(1), and ps2pdf(1)
If you don't have these tools, you can get them easily
a2ps is a GNU application with the application homepage
enscript is a GNU application with it's homepage
ps2pdf is part of the Ghostscript postscript interpreter package.
Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
-----END PGP SIGNATURE-----