I figured this one out. The issue was that PJL cruft from the Windows driver
was getting added to the top of the document, and the cups filters seemed to be
detecting the file as postscript. That caused the file to get further process by
the cups filters and resulted in PJL output on the printer.
I came accross a helpfull post
http://lists.samba.org/archive/samba/2002-September/051879.html
After reading that, I created my own x.types and x.convs file to detect the PJL
jobs.
x.types
=================================================================application/monts.samba
string(10,"PJL COMMENT MS PCLXL NT Driver")
x.convs
=================================================================application/monts.samba
application/vnd.cups-raw 0 -
That seems to have fixed things.
Kirk
----- "Kirk Patton" <kpatton@montalvosystems.com>
wrote:> Hello,
>
> I am having a problem when printing pdf files as viewed from
> firefox/acroread to a samba print share. When I print from firefox, I
> get PJL output. If I print the very same file directly from Acrobat,
> the file prints properly. Standard web pages print from firfox just
> fine.
>
> #Sample output
> -12345X@PJL COMMENT MS PCLXL NT DRIVER
> @PJl JOB NAME ...
>
> I can print from firefox/acroread "if" I print directly to the
printer
> and skip samba/cups.
>
> I have uncommitted "application/octet..." in mime.types and
mime.conv.
> I have tried setting "cups options = raw" and I still get the
same
> output. Is there something else I could be missing?
>
> When I tail cups error_log, I can see that the file is getting
> filtered when it should not be if I am using 'cups options'
> correctly.
>
> I [18/May/2007:16:10:42 -0700] Adding start banner page
"standard" to
> job 16413.
> I [18/May/2007:16:10:42 -0700] Adding end banner page "none" to
job
> 16413.
> I [18/May/2007:16:10:42 -0700] Job 16413 queued on 'hpduplex1' by
> 'exchtest'.
> I [18/May/2007:16:10:42 -0700] Started filter
> /usr/lib64/cups/filter/pstops (PID 24802) for job 16413.
> I [18/May/2007:16:10:42 -0700] Started backend
> /usr/lib64/cups/backend/ipp (PID 24803) for job 16413.
> N [18/May/2007:16:10:42 -0700] [Job 16413] : Print file accepted - job
> ID 498.
> I [18/May/2007:16:10:42 -0700] Started filter
> /usr/lib64/cups/filter/texttops (PID 24804) for job 16413.
> I [18/May/2007:16:10:42 -0700] Started filter
> /usr/lib64/cups/filter/pstops (PID 24805) for job 16413.
> I [18/May/2007:16:10:42 -0700] Started backend
> /usr/lib64/cups/backend/ipp (PID 24806) for job 16413.
> N [18/May/2007:16:10:46 -0700] [Job 16413] : Print file accepted - job
> ID 499.
>
>
>
> testparm -L samba
> Load smb config files from /etc/samba/smb.conf
> Processing section "[homes]"
> Processing section "[groups]"
> Processing section "[public]"
> Processing section "[projects]"
> Processing section "[tools]"
> Processing section "[technology]"
> Processing section "[schedule]"
> WARNING: The "printer admin" option is deprecated
> Processing section "[printers]"
> Processing section "[print$]"
> Loaded services file OK.
> Server role: ROLE_DOMAIN_MEMBER
> Press enter to see a dump of your service definitions
>
> [global]
> workgroup = MONTALVO-US
> netbios aliases = samba, mserver
> server string = Montalvo Samba Server
> security = DOMAIN
> password server = PDCUS
> log level = 2
> log file = /var/log/samba/%m.log
> max log size = 50
> lpq cache time = 3
> socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> SO_KEEPALIVE
> printcap name = cups
> cups server = printsrv01
> dns proxy = No
> printer admin = @it, root, kpatton
> cups options = raw
> include = /etc/samba/conf.samba
>
>
>
> [printers]
> comment = All Printers
> path = /tmp
> create mask = 0700
> printable = Yes
> browseable = No
>
> [print$]
> comment = Printer Drivers
> path = /var/lib/samba/printers
> write list = @it, root
> guest ok = Yes
>
> ...
>
> I am running Samba 3.0.23c
>
> any suggestions are appreciated
>
> Thanks,
> Kirk
>
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/listinfo/samba
--
Kirk Patton x5585
Sr. systems Administrator
Montalvo Systems