[Samba] PDF Print command

Blanchard, Michael MBlanchard at grandaire.com
Tue Mar 26 07:48:07 GMT 2002


I went through all the steps, and the print jobs just tend to disappear.
I've looked through all the logs and nothing tells me where it's falling
down.  I installed the drivers, added all the items to smb.conf and it
looks perfect from the client side.

-----Original Message-----
From: Dirk Allaert [mailto:da at schaubroeck.be] 
Sent: Tuesday, March 26, 2002 5:24 AM
To: 'samba at lists.samba.org'
Subject: Re: [Samba] PDF Print command


If you want to set up a pdf printer with samba, you can also read this 
article:
http://www.linuxgazette.com/issue72/bright.html

Wouter Verhelst wrote:
> Since everyone now starts asking me privately how I set up that PDF
> Printer, I suppose I'd better post that here instead of privately 
> replying to everyone interested ;-)
> 
> Unfortunately, I don't have the exact script anymore. However, the
> procedure is fairly simple: All you need is Samba (obviously), GNU 
> Ghostscript and a way to get the resulting PDF file to the user; I
used 
> the 'mime-construct' Perl program for that purpose, but there are
other 
> ways too, of course.
> 
> The required ghostscript call is as follows:
> 
> gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=output.pdf 
> input.ps
> 
> You can write a script that takes the path&filename of input.ps and 
> the
> username as its input (see the '%s' and '%u' Samba substitutions to
get 
> these) and that gets the result to the user in some way. As said, I
used 
> mime-construct to send the PDF as a MIME-attachement to the user, but 
> this has its drawbacks in that your mailserver administrator may not 
> like someone printing a 30Meg .pdf; you may want to look into putting 
> this in the users' homedirectory or something likewise.
> 
> Then, everything else you need to do is to set up a printer share with
> the parameter 'print command' set to the name of your script, and 
> install a PostScript printer driver on the users' computer to print to

> your PDF service (Any postscript printer should do; I used an Apple 
> Laserwriter which worked flawlessly).
> 
> Still, I'd like to know whether someone knows a way to achieve 
> something
> similar for a disk share ;-)
> 
> Regards,
> 
> Wouter
> 
> 



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list