[H-GEN] samba pdf printer
Robert Stanford
rob at rotapile.com
Sun Jul 27 05:33:27 EDT 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
Hi All,
First some background on the machine
debian GNU 3.0 running samba 2.2.3a-12.3
I've come to an impass setting up a pdf printer in samba. It works
wonderful.
[pdfprint]
path = /tmp
printable = Yes
comment = PDF Generator
print command = /usr/bin/ps2pdf14 %s /home/%U/"%J.pdf" && rm /tmp/%s
And a nice pdf file appears in the users home.
However as soon as i add cups in the global section
i.e.
[global]
....
printing = cups
printcap name = cups
...
So I can share out the other printers and try to print to the pdf
converter, nothing happens. Having a look at the samba log for the
client machine gives the following
smbd/ipc.c:api_fd_reply(292)
api_fd_reply: INVALID PIPE HANDLE: 7075
[2003/07/27 18:58:26, 0] printing/print_cups.c:cups_queue_get(784)
Unable to get jobs for ipp://localhost/printers/pdfprint -
client-error-not-found
[2003/07/27 18:58:28, 0] printing/print_cups.c:cups_job_submit(655)
Unable to print file to pdfprint - client-error-not-found
AHA, so its looking at cups for the printer and can't find it, so i try
a cunning ploy and add a printer with that name in cups, I assume that
the "print command =" part in [pdfprint] should override and all is
nice. Alas this is not so. Cups gets the job.
Next try, add empty "printing =" and "printcap name =" variables in
the [pdfprint] section of smb.conf (after deleting the previous cups
named pdfprint), still no luck.
After alot of searching on google i have found one match to this problem
and the disapointing follow ups of "why dont you do this instead" which
of course didnt solve the persons problem.
Any ideas please fellow Humbuggers ?
--
Robert Stanford <rob at rotapile.com>
[1] I guess the best
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list