Hello Everyone, I have a slight issue with configuring a PDF printer on my Samba servers. I have input the following into my smb.conf file and it does create the printer as well as work to create PDF files, except that it only functions when "printing" to that printer via Excel 2002. If I attempt it with anything else, even the Windows Test print, it fails. Now, in the Windows Printers folder, if I select the PDF printer the status box states that the printer is inactive and not ready. However, if I browse to the printer through the Windows Explorer Network Neighborhood, the printer shows up as active and ready. I am unsure quite what the problem is, which means it is likely something very easy. There is one thing to note, I have not a single Linux Printing Subsystem running on the machine as this server is not being used for regular printing of any sort. Here is my smb.conf section: [purchpdf] comment = PDF Generator for Purchasing path = /var/spool/samba valid users = *UserNames Removed* write list = *UserNames Removed* printable = yes print command = gs -dNOPAUSE -dbatch -q -sDEVICE=pdfwrite -sOutputFile=/share/purchasing/pdf/%J.pdf <%J 1>/dev/null 2>&1; rm -f %J Thanks for any assistance that can be rendered. Regards, Robert Adkins II IT Manager/Buyer Impel Industries, Inc. 586-254-5800
: : Hello Everyone, : : I have a slight issue with configuring a PDF printer on my Samba : servers. I have input the following into my smb.conf file and it does : create the printer as well as work to create PDF files, except that it : only functions when "printing" to that printer via Excel 2002. If I : attempt it with anything else, even the Windows Test print, it fails. : : Now, in the Windows Printers folder, if I select the PDF printer : the status box states that the printer is inactive and not ready. : However, if I browse to the printer through the Windows Explorer Network : Neighborhood, the printer shows up as active and ready. : : I am unsure quite what the problem is, which means it is likely : something very easy. There is one thing to note, I have not a single : Linux Printing Subsystem running on the machine as this server is not : being used for regular printing of any sort. : : Here is my smb.conf section: : : : [purchpdf] : comment = PDF Generator for Purchasing : path = /var/spool/samba : valid users = *UserNames Removed* : write list = *UserNames Removed* : printable = yes : print command = gs -dNOPAUSE -dbatch -q -sDEVICE=pdfwrite : -sOutputFile=/share/purchasing/pdf/%J.pdf <%J 1>/dev/null 2>&1; rm -f %J : : Thanks for any assistance that can be rendered. : : Regards, : Robert Adkins II : IT Manager/Buyer : Impel Industries, Inc. : 586-254-5800 Robert, Do you serve the printer-drivers for the workstations from you Samba-Server? - Of not, set "use client driver" to "yes" for the "pruchpdf"-printershare (see man smb.conf for details). Consider serving the driver from Samba (upload it and don't use the client driver option, see the howto-collection.pdf). Here we use the driver "Apple Color Laserwriter 12/600" served from Samba to Windows 2000(sp2,sp3) clients without problems. I also had to override the lpq-command. Try to set "lpq command = /var/samba/lpqdummy.txt" Where lpqdummy.txt only has one line with the text "no entries". Windows now always shows "ready". Take a look into the Mandrake-packaging-dir in the Samba distribution. (or http://cvs.samba.org/cgi-bin/cvsweb/samba/packaging/Mandrake ) Using their method (see smb.conf and samba-print-pdf.sh) works better than directly calling gs with "print command". I had some blocking issues with the direct call and large documents before using this method. Martin
Might not be much help but you could try and use 'use client driver = yes'. Also very nice PDF/Samba Howto here: http://www.linuxgazette.com/issue72/bright.html -----Original Message----- From: Robert Adkins II [mailto:radkins@impelind.com] Sent: 24 February 2003 22:09 To: samba@lists.samba.org Subject: [Samba] PDF Printer issue Hello Everyone, I have a slight issue with configuring a PDF printer on my Samba servers. I have input the following into my smb.conf file and it does create the printer as well as work to create PDF files, except that it only functions when "printing" to that printer via Excel 2002. If I attempt it with anything else, even the Windows Test print, it fails. Now, in the Windows Printers folder, if I select the PDF printer the status box states that the printer is inactive and not ready. However, if I browse to the printer through the Windows Explorer Network Neighborhood, the printer shows up as active and ready. I am unsure quite what the problem is, which means it is likely something very easy. There is one thing to note, I have not a single Linux Printing Subsystem running on the machine as this server is not being used for regular printing of any sort. Here is my smb.conf section: [purchpdf] comment = PDF Generator for Purchasing path = /var/spool/samba valid users = *UserNames Removed* write list = *UserNames Removed* printable = yes print command = gs -dNOPAUSE -dbatch -q -sDEVICE=pdfwrite -sOutputFile=/share/purchasing/pdf/%J.pdf <%J 1>/dev/null 2>&1; rm -f %J Thanks for any assistance that can be rendered. Regards, Robert Adkins II IT Manager/Buyer Impel Industries, Inc. 586-254-5800 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
> Date: Thu, 27 Feb 2003 08:50:12 -0000 > From: Noel Kelly <nkelly@citrusnetworks.net> > To: 'Robert Adkins II' <radkins@impelind.com>, samba@lists.samba.org > Subject: RE: [Samba] PDF Printer issue > Message-ID: <8CBC37C3DF83BC41AD9597B4940539DA61697B@mouth.uk.tarsus.plc> > Content-Type: text/plain; > charset="iso-8859-1" > MIME-Version: 1.0 > Precedence: list > Message: 8 > > Might not be much help but you could try and use 'use client driver = yes'.Better to install a driver on the samba server.> > Also very nice PDF/Samba Howto here: > http://www.linuxgazette.com/issue72/bright.htmlThe script in packaging/Mandrake/print-pdf (or something like that) is IMHO a better solution. I can expand as to why if you are interested. BTW, Mandrake 9.0 and later have a working pdf converter out-the-box (just need to upload a printer driver). Buchan -- |--------------Another happy Mandrake Club member--------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
On Thu, 2003-02-27 at 08:42, Buchan Milne wrote:> > The script in packaging/Mandrake/print-pdf (or something like that) is > IMHO a better solution. I can expand as to why if you are interested. >Expansion would be appreciated thank you.
Hi list, I have stepped over this description for Printing from Windows into PDF files.> > > > Also very nice PDF/Samba Howto here: > > http://www.linuxgazette.com/issue72/bright.html > > The script in packaging/Mandrake/print-pdf (or something like that) is > IMHO a better solution. I can expand as to why if you are interested. > > BTW, Mandrake 9.0 and later have a working pdf converter out-the-box > (just need to upload a printer driver). > > Buchan >my /etc/samba/smb.conf has this section for it (Samba 2.2.1) [pdf] path = /tmp/spool printable = yes guest ok = yes print command = /var/space/samba/printpdf.sh %s %J %c %z %f lpq command lprm command (I know the %J %c %z %f is bogus, I was trying to figure the document name) Everything works fine as far as I start printing larger files - a Word document containing 150 pages text (NO graphics!), I get only partial results, a random part of pages of the original document. It seems that my W2K client, whatever option I tried in the Printer Driver Properties, starts spoolsv.exe to spool print data - that causes smbd to swallow resources heavily (50 %) until spoolsv.exe finishes, and then cuts off the rest of the data. I have tried many different postscript drivers, including those with Large Memory defaults for their machines, and every option in their properties (i.e. dont use spooler, pass straight to printer etc). I pretty much believe its a W2K issue, if I use the above SHARE-section [pdf] with "print command = ", I can print a 600 pages document, but of course straight to happy virtual hunting grounds... Any suggestions would be highly appreciated. Florian (fstahl@xantury.com)