[Samba] HOWTO Create a PDF Writer in samba
Rainer Schoenen
schoenen at schoenen-service.de
Tue Jul 30 01:43:02 GMT 2002
Hi to the list,
this is a simple PDFwriter I use:
requires Package for ps2pdf installed (assume: ghostview)
and a script for sending attachments as email (mail_attachment).
It doesn't require lpd/CUPS or whatever unix printer driver installed.
Printer driver = Apple Laserwriter.
Result = nice colored! PDF Booklet per Email.
smb.conf:
[pdf]
comment = "Ausdruck als PDF per Email"
postscript = yes
print command = ( ps2pdf %s print_%m_%u.pdf; /usr/bin/mail_attachment -s "Your print job from %m" %u print_%m_%u.pdf; rm print_%m_%u.pdf )
# unique but ugly name:
# print command = ( ps2pdf %s %s.pdf; /usr/bin/mail_attachment -s "Your print job from %m" %u %s.pdf; rm %s.pdf )
printable = yes
writable = no
path = /tmp
valid users = @users
write list = @users
[ps]
comment = "Ausdruck als Postscript per Email"
postscript = yes
print command = ( mv %s print_%m_%u.ps; /usr/bin/mail_attachment -s "Your print job from %m" %u print_%m_%u.ps; rm print_%m_%u.ps )
# unique but ugly name:
# print command = ( mv %s %s.ps; /usr/bin/mail_attachment -s "Your print job from %m" %u %s.ps; rm %s.ps )
printable = yes
writable = no
path = /tmp
valid users = @users
write list = @users
More information about the samba
mailing list