On Wed, 2003-03-26 at 18:34, Jimmie Fulton wrote:
> I wrote my pdf (and jpg printer) script in Python... to each his own.
> :)  Its at work behind a firewall; maybe I'll post it later if I
> remember.
> 
> The script is a cups backend.  (I did it this way so that Netatalk can
> share the same cups printer that samba uses.)  It uses the arguments
> sent from samba to determine the user and filename that is printed.  I
> am able to get filenames from just about any program, including
> AutoCAD.  30"x48" PDFs/JPEGs from AutoCAD. :)  I use regular expressions
> to clean out unacceptable windows filename characters, and to change
> stuff like "Microsoft Project - Pennzoil 3rd Floor.mpp" to "Pennzoil 3rd
> Floor.mpp".  I also check for files that already exist by the same name
> and append a sequence number to new files if needed so that nothing gets
> overwritten.  Taking the username, I have the script create a folder for
> each user (the first time they make a print) on a mounted Windows share;
> you could easily store the share on the Linux box, of course.  The file
> has a .tmp extension until the file is completely written, in which it
> is changed to .pdf or .jpg.  As far as security goes, it is possible to
> have the script change the permission on the file (or containing
> directory) based on the user that printed it.
> 
> I use AdobePS drivers, which I have set up to download automatically to
> new windows clients directly from the Linux box, just like a standard
> Windows Print Server (Point-and-Print).

Jimmie,
        I'd really like to take a look at the python script and the Samba/CUPS
config.  This is something that I have been wanting to implement but
haven't been able to get all the bits into the right places
(particularly the automagic driver download for Windows clients).

Please feel free to drop me a line off list if you don't want to make it
public.

Thanks

-- 
Troy Dack                                       http://linux.tkdack.com
<[EMAIL PROTECTED]>                             http://webportage.sf.net

Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4D90BE3C
Key fingerprint = 1F3D 6C15 16AA 09D5 0C96  92E5 FD89 16F9 4D90 BE3C

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to