:: On Tue, 15 Mar 2022 00:20 +0000 (GMT Standard Time)
:: (microsoft.public.vb.general.discussion)
:: <
memo.20220315...@jeason.cix.co.uk>
::
jo...@jeasonNoSpam.cix.co.uk (John K.Eason) wrote:
> Yes indeed. I used to create specially laid-out pages of results for
> our county rifle competitions. However I cheated a bit by printing
> them to a PDF printer and then emailing the PDFs to the clubs! :^)
> I retired from doing that this year after 35 years!
Yep, that's the point; as for the PDF format, that reminded me of a
trick I used time ago, basically I installed a virtual printer port
using "redmon"
http://www.ghostgum.com.au/software/redmon.htm
now, that little program sets up what's called a "port monitor" ie a
"virtual port" to which you can connect whatever printer, usually (as in
my case) you'll select a vanilla postscript printer, but you can also
use other printers if needed ... then comes the fun, start by having a
look here
http://www.ghostgum.com.au/software/redmon19.htm
Now, the simplest use of the setup is to configure the virtual port
telling it to start a program when a printer job comes in and let it
handle the job; in this case you will usually set things up so that
when the printed output arrives (it's a PS format file) it will be
passed over to "GhostScript"
https://pages.cs.wisc.edu/~ghost/
the latter will read the "PS" file and convert it to whatever output
format including PDF, but ... you could use an intermediate program too
:) for example, let's say you write a program in VB (or whatever other
language) and configure "redmon" to run it whenever a job arrives, now
your VB code could (just an example btw) run ghostscript to convert the
PS file to a PDF or a TIFF and, once done that, send the file as an
attachment through email and/or save it to a NAS...
As you can see, using the above approach allows to play some quite
interesting tricks :) in my case, my VB code extracted a phone number
from the PS file (it was added by another program), used ghostscript to
convert the PS to a TIFF and then sent the TIFF to a fax using the fax
specific API which btw needed to specify a phone number :D