[Samba] pdf-generator

Thomas Spuhler thomas at btspuhler.com
Sat Dec 27 03:01:22 GMT 2003


I am having difficulties to set up the pdf printservice on samba.
This is a Manddrake 9.2 installation using Buchan Milne's script:

My smb.config file looks like this:


[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        guest ok = Yes
        printable = Yes
        print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.
        browseable = No

[pdf-generator]
        comment = PDF Generator (only valid users)
        path = /var/tmp
        guest ok = Yes
        printable = Yes
        print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I &

The error log looks like this.

I [26/Dec/2003:19:57:08 -0700] Adding start banner page "none" to job 125.
I [26/Dec/2003:19:57:08 -0700] Adding end banner page "none" to job 125.
I [26/Dec/2003:19:57:08 -0700] Job 125 queued on 'PDF-Generator' by 'BRIGITTE'.

But the file does not get printed

When I change guest ok =yes to no then I get this error log:


E [25/Dec/2003:10:45:07 -0700] get_printer_attrs: resource name '/printers/PDFPRINT' no good!
E [25/Dec/2003:10:45:07 -0700] get_printer_attrs: resource name '/printers/pdfprint' no good!
E [25/Dec/2003:10:45:07 -0700] get_printer_attrs: resource name '/printers/pdfprint' no good!

I would appreciate some help or hints.
Thanks
Tom

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20031226/38c7889e/attachment.bin


More information about the samba mailing list