Author Topic: Free PDF Creator as a network print queue  (Read 739 times)

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Free PDF Creator as a network print queue
« on: 4 April 2002, 07:23 »
I gained quite a few fans today at work. Several of our users need to create PDF files on their Windows machines.  We have a few copies of Adobe Acrobat but it's a little bit of a pain to create PDFs and not everyone can do it. Now everyone can create a PDF file from any application on their Windows machines just by printing to a special network print queue. Within a few seconds after printing to the queue the PDF file shows up in their Exchange mailbox as an attachment along with the first page as text in the message body. No special software needed on the client and it is completely free and works *perfectly*.

It only takes about 5 minutes to set up and if anyone is interested I will post the details.

Ingredients:
Linux
Samba
Ghostscript
mpack
and a simple script that you can tailor

On a default RedHat 7.2 install you should have everything installed that you need except for mpack, you can find this on http://www.rpmfind.net/ and I used the mpack-1.5-3.i386.rpm. mpack is just a utility to send a message including an attachment from the command line or a script. There are other ways to do this.  And you don't necessarily have to have the script email the PDF as an attachment. You can just as easily have the script copy the PDF to a specific shared location where the user can pick up the file. Use your imagination.  In our case it's easy because I can get the NT domain userid in the script from whoever prints to the queue, and the NT domain ID also happens to be the first part of all of our users email addresses so emailing is easy in our case.

Let me know if you want more....

P.S. I also added to the NT domain logon script to have this queue automatically connected when the users log in. No work was required by the user to be given this new ability. I use the standard "HP Color LaserJet PS" driver on the users machines to print to the queue.

[ April 03, 2002: Message edited by: VoidMain ]

Someone please remove this account. Thanks...

mskarl

  • Member
  • **
  • Posts: 77
  • Kudos: 0
    • http://www.fuckmicrosoft.com
Free PDF Creator as a network print queue
« Reply #1 on: 5 April 2002, 20:21 »
Just the other day I was looking for an easy way to do that at work (win2k box).  But all software was expensive!!!  So I quit looking.  Really cool idea.  Too bad we don't have any linux boxes at work except the firewall.  But I hope to change that in the future.

[ April 05, 2002: Message edited by: Anti M$ ]

Big brother Microsoft sucks!!! (And my spelling is horrible)

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Free PDF Creator as a network print queue
« Reply #2 on: 6 April 2002, 05:06 »
Well just download the Windows version of Ghostscript. It should include a "ps2pdf" utility. If not you can give "gs" a couple of options and spit out a PDF from a postscript file. Do you need help on how to get your documents into PostScript format?  Some apps can save as postscript, otherwise create a local print queue using a PostScript driver (HP Color LaserJet PS) but have the queue redirect the output to a file. Take that file and run "ps2pdf13" on it from the GhostScript package. Also "convert" from the "ImageMagic" distribution can easily convert files between many formats including PS->PDF. I believe it actually calls GhostScript to do this though. I also believe there is a version of ImageMagic that runs under Windows. Do a little searching.
Someone please remove this account. Thanks...