[Samba] PDF Print command

David Brodbeck DavidB at mail.interclean.com
Tue Mar 26 06:16:05 GMT 2002


I did a similar thing.  I created a printer on the Samba system and wrote a
Perl print filter script to generate a PDF file using the Ghostscript
'ps2pdf' program.  (I use a Postscript printer driver on the Windows side,
which is set up to auto-install when someone connects to the PDF printer.)
Output is dumped in a disk share where the users know to look for it, and a
WinPopUp message is sent when the file is complete.  The only rough edge is
that there's no way for a print filter to know the actual filename of the
printed document, since Samba doesn't pass it along.  The output filename is
generated from the user's username, the current time, and the process ID --
the first two make it easier for the user to find the right file, the last
ensures that no matter how many print jobs they queue up none are likely to
be overwritten.




More information about the samba mailing list