Unix administration - ASCII to PDF converter

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > April 2005 > ASCII to PDF converter





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ASCII to PDF converter
Print Dude

2005-04-20, 8:48 pm

Does anyone know of an opensource ASCII to PDF converter that can be
run on a print spool in the form of a filter so that it can be sent to
an Output Managment database?
Bev A. Kupf

2005-04-21, 2:54 am

On Thu, 21 Apr 2005 01:16:57 GMT,
Print Dude (printdude1968@gmail.com) wrote:
> Does anyone know of an opensource ASCII to PDF converter that can be
> run on a print spool in the form of a filter so that it can be sent to
> an Output Managment database?


Ghostscript - it can create PDF output, and be used as a print filter.

--
Many a smale maketh a grate -- Geoffrey Chaucer
Lew Pitcher

2005-04-21, 2:54 am

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Print Dude wrote:
> Does anyone know of an opensource ASCII to PDF converter that can be
> run on a print spool in the form of a filter so that it can be sent to
> an Output Managment database?


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.

Something like
a2ps -o - | ps2pdf - targetfile.pdf
or
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
or
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
at http://www.inf.enst.fr/~demaille/a2ps/
enscript is a GNU application with it's homepage
at http://people.ssh.fi/mtr/genscript/
ps2pdf is part of the Ghostscript postscript interpreter package.

- --
Lew Pitcher

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)

iD8DBQFCZxqlagVFX4UWr64RAs7yAJ0WeRkhmgRc
AKWkKpGdOzaslF+P4gCeNdtn
9IPgLFR2Bt9M1I1f8hb918I=
=PWaS
-----END PGP SIGNATURE-----
Dave Hinz

2005-04-21, 5:59 pm

On Thu, 21 Apr 2005 01:16:57 GMT, Print Dude <printdude1968@gmail.com> wrote:
> Does anyone know of an opensource ASCII to PDF converter that can be
> run on a print spool in the form of a filter so that it can be sent to
> an Output Managment database?


txt2pdf (or text2pdf) - text to PDF is pretty simple. Google for those
program names & take your pick.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com