Hello,
I am having difficulties in getting the PDF printing script to work with my Samba server.
At first I was shown the error "Access Denied, Unable to Connect". This was fixed by adding
"Use Client Driver = Yes" to smb.conf.
My problem now is that everything seems to work fine, however no PDF's are created!
Below are what i think are the relevant bits from the Cups and Samba log files. It is a working
file server and all other functions are fine, including regular printing.
Any help would be greatly appreciated.
Richard
Cups error_log line:
E [23/Dec/2003:15:54:56 +0000] print_job: resource name '/printers/pdf' no good!
Samba log line:
[2003/12/23 15:22:12, 0] printing/print_cups.c:cups_job_submit(655)
Unable to print file to pdf - client-error-not-found
Smb.conf
[global]
netbios name = ls
smb passwd file = /etc/smbpasswd
server string = ls
printing = cups
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
local master = yes
workgroup = Workgroup
os level = 34
auto services = global gm cd's PDFs tech printers OfficeJetLX pdf printer
encrypt passwords = no
printcap name = cups
security = share
wins support = true
browseable = yes
nt smb support = yes
nt pipe support =yes
nt status support = yes
show add printer wizard = yes
domain master = yes
[gm]
path = /data/goldmine
readonly = no
public = yes
[cd's]
comment = CD's
path = /data/cd
public = yes
writable = no
printable = no
[printer$]
comment = Drivers
path = /data/tech/drivers
public = yes
writable = yes
[PDFs]
path = /data/pdf
public = yes
writable = yes
[tech]
comment = Technical Files
path = /data/tech
public = yes
writable = yes
[OJLX]
path = /data/spool/OLX
printer = Office Jet LX
public = yes
writable = no
printable = yes
[pdf]
path = /data/spool/pdf
lpq command =
writeable = no
print command = /usr/bin/printpdf %s
printable = yes
public = yes
lprm command =
create mask = 0700
browseable = yes
use client driver = yes
PDF script:
# Simple script to convert a specified postscript file into a PDF document
# and place it in a location that is shared by the Samba server.
#
# Arguments:
# 1st - The name of the spool file
#
# John Bright, 2001,
jbright@winfordeng.com
# We will create the pdf into a temporary file based upon the current date and t
ime.
# After we are finished, we'll rename it to a file with the same date, but endin
g
# in .pdf. We do this because if a user tries to open a PDF that is still being
written,
# they will get a message that it is corrupt, when it is actually just not done
yet.
DATE=`date +%b%d-%H%M%S`
# Directory in which to place the output
# Be sure this directory exists and is writable by the user that Samba
# is running as (for example, the nobody user)
OUTDIR=/data/pdf
ps2pdf $1 $OUTDIR/$DATE.temp
mv $OUTDIR/$DATE.temp $OUTDIR/$DATE.pdf
rm $1