Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] pdf printer

0 views
Skip to first unread message

Norman Zhang

unread,
May 30, 2003, 5:50:11 PM5/30/03
to
Hi,

I created a PDFPrinter as per

http://marc.theaimsgroup.com/?l=samba&m=105301236523413&w=2

I have another question, do I need to add a Color Laser Printer Driver in
W2K to the PDF share to generate color PDF in Windows?

Regards,
Norman

--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba

Kurt Pfeifle

unread,
May 30, 2003, 7:20:06 PM5/30/03
to
Norman Zhang nzhang at arkon-group.com

> Fri May 30 14:39:02 GMT 2003


>
>
> Hi,
>
> I created a PDFPrinter as per
>
> http://marc.theaimsgroup.com/?l=samba&m=105301236523413&w=2

Please use this little HOWTO:

http://lists.samba.org/pipermail/samba/2003-March/093504.html

The "color" all depends on the PPD you are using. If you use a B/W Laerprinter
PPD for this, your PDF will be B/W too. The suggested distiller.ppd should
be alright. Do you get B/W or Color PDFs from Linux/UNIX/CUPS?

> I have another question, do I need to add a Color Laser Printer Driver in
> W2K to the PDF share to generate color PDF in Windows?

If you read the suggested HOWTO, you'll see that the driver installation
first takes place on CUPS. Then you have a CUPS PDF printer (also accessible
to native CUPS clients).

To install it on W2K, simply download the CUPS driver. Before you download
it, you need to run cupsaddsmb. Before you run cupsaddsmb, you should read
"man cupsaddsmb". Even more info about it is here:

http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/

>
> Regards,
> Norman

Cheers,
Kurt

Norman Zhang

unread,
May 30, 2003, 7:40:08 PM5/30/03
to
Hi,

Thank you for your reply.

> Please use this little HOWTO:
>
> http://lists.samba.org/pipermail/samba/2003-March/093504.html
>
> The "color" all depends on the PPD you are using. If you use a B/W
Laerprinter
> PPD for this, your PDF will be B/W too. The suggested distiller.ppd should
> be alright. Do you get B/W or Color PDFs from Linux/UNIX/CUPS?

I followed the exact procedure as per above URL, except I grabbed the
adist5.ppd from the Adobe Universal PostScript Installer 1.0.6. Is that
okay? CUPS seems to able to read it. I got color PDF when I installed an
arbitrary color laser printer (HP Color LaserJet 8500 PS. I thought I can
get different paper size with this model) and B/W with a B/W laser printer
(HP LaserJet 2200 PS). Do you have a recommendation for a particular model?

> > I have another question, do I need to add a Color Laser Printer Driver
in
> > W2K to the PDF share to generate color PDF in Windows?
>
> If you read the suggested HOWTO, you'll see that the driver installation
> first takes place on CUPS. Then you have a CUPS PDF printer (also
accessible
> to native CUPS clients).

I have setup CUPS to use PDF printing. I guess I just need to add printer
drivers to the queue? I was adding the drivers from W2K using HP's printer
drivers. I know it is better to use CUPS drivers, but I don't know which
model is good and it seems to be difficult to use cupsaddsmb.

> To install it on W2K, simply download the CUPS driver. Before you download
> it, you need to run cupsaddsmb. Before you run cupsaddsmb, you should read
> "man cupsaddsmb". Even more info about it is here:
>
> http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/

I have been reading your document for the last 2 days (excellent document
BTW). I guess I will read it again 8)

Regards,
Norman

Kurt Pfeifle

unread,
May 31, 2003, 5:40:04 AM5/31/03
to
> Norman Zhang nzhang at arkon-group.com
> Fri May 30 16:34:25 GMT 2003

>
>
> Hi,
>
> Thank you for your reply.
>
>> Please use this little HOWTO:
>>
>> http://lists.samba.org/pipermail/samba/2003-March/093504.html
>>
>> The "color" all depends on the PPD you are using. If you use a B/W Laerprinter
>> PPD for this, your PDF will be B/W too. The suggested distiller.ppd should
>> be alright. Do you get B/W or Color PDFs from Linux/UNIX/CUPS?
>
> I followed the exact procedure as per above URL, except I grabbed the
> adist5.ppd from the Adobe Universal PostScript Installer 1.0.6. Is that
> okay?

Yes.

But this only covers the "Install-PDF-Printer-on-CUPS" part.

The other part is the "Install-PDF-Printer-on-Windows". Here you have
several options. My recommendation is the "Use-the-CUPS-PostScript-Drivers-
for-Windows-NT/2K/XP"-and-export-with-the-help-of-cupsaddsmb" one.

> CUPS seems to able to read it. I got color PDF when I installed an
> arbitrary color laser printer (HP Color LaserJet 8500 PS.

You mean if you install that printer on a Windows client and connect it to
the PDF printer?

That's OK if it works. "The proof of the pudding lies in the eating.".

But it won't work with *aribitrary" color laser printers:

* the driver *must* be a PostScript driver (won't work with PCL). This
is probably obvious to most readers

* even some PostScript drivers won't work. (If they rely heavily on PJL
and write a native PJL header to the PostScript file they generate,
CUPS won't be able to filter the file properly as intended. The "CUPS
PS Driver for Windows NT/2K/XP" works around this.)

> I thought I can
> get different paper size with this model)

This should work with any PPD containing descriptions for different paper
sizes.

> and B/W with a B/W laser printer
> (HP LaserJet 2200 PS). Do you have a recommendation for a particular model?
>
>> > I have another question, do I need to add a Color Laser Printer Driver
>> > in W2K to the PDF share to generate color PDF in Windows?
>>
>> If you read the suggested HOWTO, you'll see that the driver installation
>> first takes place on CUPS. Then you have a CUPS PDF printer (also
>> accessible to native CUPS clients).
>
> I have setup CUPS to use PDF printing.

Ah, I see.

> I guess I just need to add printer
> drivers to the queue?

Yes.

> I was adding the drivers from W2K using HP's printer
> drivers. I know it is better to use CUPS drivers, but I don't know which
> model is good

The one which works on CUPS (determined by the PPD) is good for Win clients
too. cupsaddsmb installs exactly that PPD, plus the Windows PostScript
driver you choose (the Adobe or the CUPS version).

> and it seems to be difficult to use cupsaddsmb.

cupsaddsmb is extremely simple to use. (It is more difficult to understand
how it works. How it works is discussed in the new HOWTO.) If it doesn't
work, it is mostly because of an error in the "preparation" of the command.
See "man cupsaddsmb" for that preparation. Common errors are discussed in
the new HOWTO.

>> To install it on W2K, simply download the CUPS driver. Before you download
>> it, you need to run cupsaddsmb. Before you run cupsaddsmb, you should read
>> "man cupsaddsmb". Even more info about it is here:
>>
>> http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/
>
> I have been reading your document for the last 2 days (excellent document
> BTW). I guess I will read it again 8)
>
> Regards,
> Norman
>

Cheers,
Kurt

Tom McKellips

unread,
May 31, 2003, 8:20:12 AM5/31/03
to
Making a PDF printer with samba is easy. I use an Apple Color laserwriter PS
driver on my Windows boxes and a call to ghostscript on Linux. The article
that got me started out good is at http://www.linux-mag.com/2003-
01/guru_01.html It sounds like this may help you also.

On Sat, 31 May 2003 11:50:40 +0200, Kurt Pfeifle wrote


--
Internet Service Provided By Abyss Communications
Internet Service only $10 a month
1-866-842-2977

Joel Hammer

unread,
May 31, 2003, 9:00:12 AM5/31/03
to
I must agree with the simplicity of doing this.

Most linux apps will print a postscript document to a file when asked
to print to a file. Then, just run ps2pdf. Setting up a print queue to
do this would be easy, at least in lprng, since linux apps routinely
generate postscript files when asked to print.

If coming from a windows client, just choose a postscript driver and do
the same thing.

Joel

Tom McKellips

unread,
May 31, 2003, 6:30:13 PM5/31/03
to
Yep I have set up mine so that when I print to my Samba PDF printer from
windows it creates the PDF then puts it in my home directory for me to use.

On Sat, 31 May 2003 08:50:34 -0400, Joel Hammer wrote

mwes...@sola.com.au

unread,
Jun 2, 2003, 10:00:17 PM6/2/03
to
did you end up figuring this out? i have a working cups pdf printer.
thanks to some guy who posted to here....

i've modified my pdfprinter to email the user as well, sing out if you want
that script....

-------------------------------------------------------------------
>Using CUPS backend to create PDF virtual printer
>---------------------------------------------------------------
>---------
>
>1. Get a un*x box with CUPS and ghostscript set up on it.
>
>2. Go here: http://printing.kde.org/downloads/ and download
>this backend
>script: http://printing.kde.org/downloads/pdfdistiller
>
>3. Log in as root, put it in /usr/lib/cups/backend or wherever
>cups/backend lives.
>
>4. 'chmod +x' the file (should be 755: rwxr-xr-x).
>
>5. Restart CUPS ('service cups restart' or appropriate).
>
>6. To check if CUPS recognizes it as a usable backend, let root run:
> 'lpinfo -v | grep pdf'
> should output "direct pdf"
>
>7. Test the pdfdistiller backend:
> a. '/usr/lib/cups/backend/pdf'
> should output 'direct pdf "Unknown" "PDF Writing"'
> b. "/usr/lib/cups/backend/pdf 1 2 a b"
> should output: "Usage: pdf job-id user title copies
>options [file]"
>
>8. Test existence of Ghostscript's ps2pdf with 'which ps2pdf'. Output
>should be a path like "/usr/bin/ps2pdf" or similar
>
>9. Download a PPD file for cups to print with. An Adobe
>Distiller PPD is
>a great choice. I used the one from this page:
>
>http://www.pentondigitalads.com/PentonDigitalAds/creating_posts
cript_files.h
tm
("Acrobat Distiller PPD for Windows")
If this link is dead, search Google/web for "distiller ppd" and
find a suitable file.

10. Put the PPD file in /usr/share/cups/model or wherever your CUPS
model PPDs are stored.

11. Restart CUPS.

12. Add the printer to CUPS with the command:
'lpadmin -p <Chosen Name> -E -v pdf:<out folder> -m <ppd-file>'
i.e.:
'lpadmin -p PDFprinter -E -v pdf:/pub/pdf_out -m distiller.ppd'

13. Test the PDF output by manually printing to the new printer:
'lpr -P PDFprinter test.txt'

Troubleshooting each step:

1. If you're stuck on #1, find a more appropriate howto.

2. If that file is missing, beg someone for a copy.

7. I got stuck on this one. without renaming it "pdf", it didn't work at
all. No clue why. Try copying the file "pdfdistiller" the file to "pdf"
in the same folder. ('cp pdfdistiller pdf'). If these aren't working, go
no further. Make sure CUPS is installed properly and work on this first.

8. If this doesn't work, you'll need to install the latest "ESP
Ghostscript". It's available at:
http://www.cups.org/software.php

9. Adobe doesn't distribute this file, so it could be tricky to find.

10. Same as #3. PPD files made for Macintosh and Windows computers will
need to be re-saved in un*x format.

11. There should be a number of PPD files in that folder already. Search
for "laserjet.ppd" if you have no idea where to find them.

12. If this fails, make sure you're specifying a valid PPD file from the
model folder in the "-m" part. Alternatively, you may use '-P <ppd>'
instead of '-m', but you must specify the entire path.

13. No go? Time to start logging everything. After the first line of
your backend file (pdf or pdfdistiller), add the line "set -x". Edit
your cupsd.conf and set "LogLevel debug". Restart CUPS and peruse the
information in /var/log/cups/error_log for good debugging info.

Enjoy!

Thanks to Kurt Pfeifle [kpfeifle (at) danka (dot) de] for all the help,
comments and editing this mini-howto with me.

--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba

---------------------------------------------------------------

-----Original Message-----
From: samba-...@lists.samba.org
[mailto:samba-...@lists.samba.org]On Behalf Of Norman Zhang
Sent: Saturday, May 31, 2003 9:04 AM
To: sa...@lists.samba.org
Subject: [Samba] Re: pdf printer


Hi,

Thank you for your reply.

> Please use this little HOWTO:
>
> http://lists.samba.org/pipermail/samba/2003-March/093504.html
>
> The "color" all depends on the PPD you are using. If you use a B/W
Laerprinter
> PPD for this, your PDF will be B/W too. The suggested distiller.ppd should
> be alright. Do you get B/W or Color PDFs from Linux/UNIX/CUPS?

I followed the exact procedure as per above URL, except I grabbed the
adist5.ppd from the Adobe Universal PostScript Installer 1.0.6. Is that

okay? CUPS seems to able to read it. I got color PDF when I installed an
arbitrary color laser printer (HP Color LaserJet 8500 PS. I thought I can
get different paper size with this model) and B/W with a B/W laser printer


(HP LaserJet 2200 PS). Do you have a recommendation for a particular model?

> > I have another question, do I need to add a Color Laser Printer Driver
in
> > W2K to the PDF share to generate color PDF in Windows?
>
> If you read the suggested HOWTO, you'll see that the driver installation
> first takes place on CUPS. Then you have a CUPS PDF printer (also
accessible
> to native CUPS clients).

I have setup CUPS to use PDF printing. I guess I just need to add printer
drivers to the queue? I was adding the drivers from W2K using HP's printer


drivers. I know it is better to use CUPS drivers, but I don't know which

model is good and it seems to be difficult to use cupsaddsmb.

> To install it on W2K, simply download the CUPS driver. Before you download
> it, you need to run cupsaddsmb. Before you run cupsaddsmb, you should read
> "man cupsaddsmb". Even more info about it is here:
>
> http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/

I have been reading your document for the last 2 days (excellent document
BTW). I guess I will read it again 8)

Regards,
Norman


Matthew Western

unread,
Jun 2, 2003, 10:00:23 PM6/2/03
to
I modified pdfdistiller to grab out the %%Title field of the poscript header
to give it a better name cos username-date.pdf isn't much chop. also emails
the pdf to the user rather than chucking on a drive. sing out if you
want a copy.

also beware everyone. a new version of ghostscript caused me to waste about
half a day trying to figure out why my perfectly working pdf printer stopped
working. it logged a "Unable to open the initial device, quitting." error
in my log file which meant not a whole lot but finally figured out i needed
to set the TMPDIR or TEMPDIR or somethig to /tmp in the script. i read
something about not having access to temporary directory but no refercene
anywhere about what to set. i did TMP,TEMP,TEMPDIR,TMPDIR in my script and
that hit it on the head. that was a real poo.

regards
Matthew

> > > > Hi,
> > > >
> > > > Thank you for your reply.
> > > >
> > > >> Please use this little HOWTO:
> > > >>
> > > >> http://lists.samba.org/pipermail/samba/2003-March/093504.html
> > > >>
> > > >> The "color" all depends on the PPD you are using. If you use a B/W
> > Laerprinter
> > > >> PPD for this, your PDF will be B/W too. The suggested distiller.ppd
> > should
> > > >> be alright. Do you get B/W or Color PDFs from Linux/UNIX/CUPS?
> > > >
> > > > I followed the exact procedure as per above URL, except I grabbed
the
> > > > adist5.ppd from the Adobe Universal PostScript Installer 1.0.6. Is
that
> > > > okay?
> > >

> > > Yes.
> > >
> > > But this only covers the "Install-PDF-Printer-on-CUPS" part.
> > >
> > > The other part is the "Install-PDF-Printer-on-Windows". Here you have
> > > several options. My recommendation is the "Use-the-CUPS-PostScript-
> > > Drivers- for-Windows-NT/2K/XP"-and-export-with-the-help-of-
> > > cupsaddsmb" one.
> > >

> > > > CUPS seems to able to read it. I got color PDF when I installed an
> > > > arbitrary color laser printer (HP Color LaserJet 8500 PS.
> > >

> > > You mean if you install that printer on a Windows client and connect
> > > it to the PDF printer?
> > >
> > > That's OK if it works. "The proof of the pudding lies in the eating.".
> > >
> > > But it won't work with *aribitrary" color laser printers:
> > >
> > > * the driver *must* be a PostScript driver (won't work with PCL).
This
> > > is probably obvious to most readers
> > >
> > > * even some PostScript drivers won't work. (If they rely heavily
> > > on PJL and write a native PJL header to the PostScript file they
> > > generate, CUPS won't be able to filter the file properly as
> > > intended. The "CUPS PS Driver for Windows NT/2K/XP" works around
> > > this.)
> > >

> > > > I thought I can
> > > > get different paper size with this model)
> > >

> > > This should work with any PPD containing descriptions for different
paper
> > > sizes.
> > >

> > > > and B/W with a B/W laser printer
> > > > (HP LaserJet 2200 PS). Do you have a recommendation for a particular
> > model?
> > > >
> > > >> > I have another question, do I need to add a Color Laser Printer
Driver
> > > >> > in W2K to the PDF share to generate color PDF in Windows?
> > > >>
> > > >> If you read the suggested HOWTO, you'll see that the driver
installation
> > > >> first takes place on CUPS. Then you have a CUPS PDF printer (also
> > > >> accessible to native CUPS clients).
> > > >
> > > > I have setup CUPS to use PDF printing.
> > >

> > > Ah, I see.


> > >
> > > > I guess I just need to add printer
> > > > drivers to the queue?
> > >

> > > Yes.


> > >
> > > > I was adding the drivers from W2K using HP's printer
> > > > drivers. I know it is better to use CUPS drivers, but I don't know
which
> > > > model is good
> > >

> > > The one which works on CUPS (determined by the PPD) is good for Win
clients
> > > too. cupsaddsmb installs exactly that PPD, plus the Windows
> > > PostScript driver you choose (the Adobe or the CUPS version).
> > >

> > > > and it seems to be difficult to use cupsaddsmb.
> > >

> > > cupsaddsmb is extremely simple to use. (It is more difficult to
understand
> > > how it works. How it works is discussed in the new HOWTO.) If it
doesn't
> > > work, it is mostly because of an error in the "preparation" of the
command.
> > > See "man cupsaddsmb" for that preparation. Common errors are
> > > discussed in the new HOWTO.
> > >

> > > >> To install it on W2K, simply download the CUPS driver. Before you
> > download
> > > >> it, you need to run cupsaddsmb. Before you run cupsaddsmb, you
should
> > read
> > > >> "man cupsaddsmb". Even more info about it is here:
> > > >>
> > > >> http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/
> > > >
> > > > I have been reading your document for the last 2 days (excellent
document
> > > > BTW). I guess I will read it again 8)
> > > >
> > > > Regards,
> > > > Norman
> > > >
> > >

> > > Cheers,
> > > Kurt


> > >
> > > --
> > > To unsubscribe from this list go to the following URL and read the
> > > instructions: http://lists.samba.org/mailman/listinfo/samba
> >
> >
> > --

> > Internet Service Provided By Abyss Communications
> > Internet Service only $10 a month
> > 1-866-842-2977

> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions: http://lists.samba.org/mailman/listinfo/samba


--


Internet Service Provided By Abyss Communications
Internet Service only $10 a month
1-866-842-2977

Norman Zhang

unread,
Jun 2, 2003, 10:30:13 PM6/2/03
to
Hi,

"Kurt Pfeifle" <kpfe...@danka.de> wrote in message
news:3ED87AF0...@danka.de...


> > Norman Zhang nzhang at arkon-group.com
> >

> > I followed the exact procedure as per above URL, except I grabbed the
> > adist5.ppd from the Adobe Universal PostScript Installer 1.0.6. Is that
> > okay?
>
> Yes.
>
> But this only covers the "Install-PDF-Printer-on-CUPS" part.
>
> The other part is the "Install-PDF-Printer-on-Windows". Here you have
> several options. My recommendation is the
"Use-the-CUPS-PostScript-Drivers-
> for-Windows-NT/2K/XP"-and-export-with-the-help-of-cupsaddsmb" one.

Sorry I'm still a little confused here. Can I do "cupsaddsmb -H PRNSERVER
printer PDFPrinter" to setup PostScript driver (adist5.ppd) for
Win9x/NT/2000, so users can download them from their personal workstations?
If so, then I don't need to add arbitrary color laser printer from Windows?

> > CUPS seems to able to read it. I got color PDF when I installed an
> > arbitrary color laser printer (HP Color LaserJet 8500 PS.
>
> You mean if you install that printer on a Windows client and connect it to
> the PDF printer?
>
> That's OK if it works. "The proof of the pudding lies in the eating.".

Regards,
Norman

Daniel Wittenberg

unread,
Jun 2, 2003, 10:40:07 PM6/2/03
to
Since you've been talking about this I decided I should get around to
trying it. I used the Apple Color LaserWrite PS driver (and several
others), but I don't get any output on the Linux side. I used:

[smbpdf]
comment = PDF Generator
path = /var/spool/samba
printable = Yes
public = yes
print command = cat - > /tmp/test.ps

I tried making the print command as simple as possible, and what I get
is an empty file. Any ideas why it wouldn't be sending the data? I
used log level 4 and didn't see any errors or unsual events...

Dan

Norman Zhang

unread,
Jun 2, 2003, 10:40:16 PM6/2/03
to
Hi,

"Kurt Pfeifle" wrote in message


> > Norman Zhang nzhang at arkon-group.com
> >

> > I followed the exact procedure as per above URL, except I grabbed the
> > adist5.ppd from the Adobe Universal PostScript Installer 1.0.6. Is that
> > okay?
>
> Yes.
>
> But this only covers the "Install-PDF-Printer-on-CUPS" part.
>
> The other part is the "Install-PDF-Printer-on-Windows". Here you have
> several options. My recommendation is the
> "Use-the-CUPS-PostScript-Drivers-for-Windows-NT/2K/XP"

> -and-export-with-the-help-of-cupsaddsmb" one.

Sorry I'm still a little confused here. Can I do "cupsaddsmb -H PRNSERVER
printer PDFPrinter" to setup PostScript driver (adist5.ppd) for
Win9x/NT/2000, so users can download them from their personal workstations?
If so, then I don't need to add arbitrary color laser printer from Windows?

> > CUPS seems to able to read it. I got color PDF when I installed an


> > arbitrary color laser printer (HP Color LaserJet 8500 PS.
>
> You mean if you install that printer on a Windows client and connect it to
> the PDF printer?
>
> That's OK if it works. "The proof of the pudding lies in the eating.".

Regards,
Norman

Matthew Western

unread,
Jun 2, 2003, 11:10:04 PM6/2/03
to
i'd use cups myself, but...

problem your print command. according to the man page (i've got a full
printout on my desk. :) )

<quote> The print command MUST contain at least one occurance of %s or %f -
the ... <end quote>

i suggest you search google for samba pdf for just samba. or use the
following for a cups (better) back end.

---------------

11. Restart CUPS.

Troubleshooting each step:

Enjoy!

--


To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba

--------------------


-----Original Message-----
From: samba-...@lists.samba.org
[mailto:samba-...@lists.samba.org]On Behalf Of Daniel Wittenberg
Sent: Tuesday, June 03, 2003 5:25 AM
To: sa...@lists.samba.org
Subject: Re: [Samba] pdf printer

Dan

> > > > > Norman Zhang nzhang at arkon-group.com

> > > > > Fri May 30 16:34:25 GMT 2003
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > Thank you for your reply.
> > > > >
> > > > >> Please use this little HOWTO:
> > > > >>
> > > > >> http://lists.samba.org/pipermail/samba/2003-March/093504.html
> > > > >>
> > > > >> The "color" all depends on the PPD you are using. If you use a
B/W
> > > Laerprinter
> > > > >> PPD for this, your PDF will be B/W too. The suggested
distiller.ppd
> > > should
> > > > >> be alright. Do you get B/W or Color PDFs from Linux/UNIX/CUPS?
> > > > >

> > > > > I followed the exact procedure as per above URL, except I grabbed
the
> > > > > adist5.ppd from the Adobe Universal PostScript Installer 1.0.6. Is
> that
> > > > > okay?
> > > >
> > > > Yes.
> > > >
> > > > But this only covers the "Install-PDF-Printer-on-CUPS" part.
> > > >
> > > > The other part is the "Install-PDF-Printer-on-Windows". Here you
have

> > > > several options. My recommendation is the "Use-the-CUPS-PostScript-
> > > > Drivers- for-Windows-NT/2K/XP"-and-export-with-the-help-of-
> > > > cupsaddsmb" one.
> > > >

> > > > > CUPS seems to able to read it. I got color PDF when I installed an
> > > > > arbitrary color laser printer (HP Color LaserJet 8500 PS.
> > > >
> > > > You mean if you install that printer on a Windows client and connect
> > > > it to the PDF printer?
> > > >
> > > > That's OK if it works. "The proof of the pudding lies in the
eating.".
> > > >

> > > > --
> > > > To unsubscribe from this list go to the following URL and read the
> > > > instructions: http://lists.samba.org/mailman/listinfo/samba
> > >
> > >

> > > --
> > > Internet Service Provided By Abyss Communications
> > > Internet Service only $10 a month
> > > 1-866-842-2977

> > > --
> > > To unsubscribe from this list go to the following URL and read the
> > > instructions: http://lists.samba.org/mailman/listinfo/samba
>
>

> --
> Internet Service Provided By Abyss Communications
> Internet Service only $10 a month
> 1-866-842-2977

--

Norman Zhang

unread,
Jun 2, 2003, 11:30:09 PM6/2/03
to
Hi,

> > But this only covers the "Install-PDF-Printer-on-CUPS" part.
> >
> > The other part is the "Install-PDF-Printer-on-Windows". Here you have
> > several options. My recommendation is the
> > "Use-the-CUPS-PostScript-Drivers-for-Windows-NT/2K/XP"
> > -and-export-with-the-help-of-cupsaddsmb" one.
>
> Sorry I'm still a little confused here. Can I do "cupsaddsmb -H PRNSERVER
> printer PDFPrinter" to setup PostScript driver (adist5.ppd) for
> Win9x/NT/2000, so users can download them from their personal
workstations?
> If so, then I don't need to add arbitrary color laser printer from
Windows?

I tried "cupsaddsmb -v PDFprinter", but system complaints that it cannot
find PDFprinter.ppd. I tried copy PDFprinter.ppd to almost every folder, but
still no luck. I'm doing this right? Where should I put PDFprinter.ppd?

Matthew Western

unread,
Jun 3, 2003, 12:00:13 AM6/3/03
to
now i'm confused. do you have anything in your /etc/cups/printers.conf ?
what step are you up to in the howto? which howto? i've got the 'cups
software administrators manual' and 'printing support in samba 3.0'

what reference are you going by?

regards
Matthew


-----Original Message-----
From: samba-...@lists.samba.org
[mailto:samba-...@lists.samba.org]On Behalf Of Norman Zhang
Sent: Tuesday, June 03, 2003 12:53 PM
To: sa...@lists.samba.org
Subject: [Samba] Re: pdf printer

Norman Zhang

unread,
Jun 3, 2003, 12:40:13 AM6/3/03
to
Hi,

> now i'm confused. do you have anything in your /etc/cups/printers.conf?
> what step are you up to in the howto? which howto? i've got the 'cups
> software administrators manual' and 'printing support in samba 3.0'
>
> what reference are you going by?

I followed exactly

http://lists.samba.org/pipermail/samba/2003-March/093504.html

as Kurt and you pointed out. Thanks 8) I do have the PDFprinter in
/etc/cups/printers.conf. Okay at the beginning PDFprinter didn't show up
after per execution of above URL. (I did restart cups.) So I went into the
web interface of CUPS and created PDFprinter by selecting pdf printing and
choose location /var/tmp.

If you read below, I can make the PDFprinter as a downloadable driver for
Windows?

Matthew Western

unread,
Jun 3, 2003, 1:30:13 AM6/3/03
to
ah. now i've caught up.

yes definitly. have you managed to get any other printers working with
downloadable drivers?

you need to refer to the 'printing support in samba 3.0'
http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/ and that explains in
detail how to make your drivers downloadable page 45 on mine (i've got an
old draft so it may be different page) main heading 'Setting up CUPS for
driver download. probably worth working through all the pages he's written
so as to completely understand how it works (fairly simple really). in
short you need to:

create [print$] share with the right permissions.
browse to \\samba then printers and modify the printers on the server (ie
upload drivers, settings etc etc).
i'd do it the long way as well to learn what it's doing. ie print test page,
collect files, put them in the right place, addprinter yadada. even the
rpcclient stuff is useful to learn, but i wouldn't do it that way normally
as it's too much typing...

then install driver on a client to test. don't try to modify settings from
a client cos they won't be saved.

which PPD to use? whatever one you like. start with the laserjet.ppd.
from memory i didn't even bother with PPDs cos if you print as raw, the
windoze driver does all the formatting and it doesn't change as it's passed
though samba&cups. this is opinion and i may be wrong as i didn't write
any notes as i installed stuff. someone may like to chip in and correct me.

regards
Matthew


-----Original Message-----
From: samba-bounces+mwestern=affairs...@lists.samba.org
[mailto:samba-bounces+mwestern=affairs...@lists.samba.org]On Behalf
Of Norman Zhang
Sent: Tuesday, June 03, 2003 2:05 PM
To: sa...@lists.samba.org

Norman Zhang

unread,
Jun 3, 2003, 2:30:16 AM6/3/03
to
Hi Matthew,

Thank you for your reply.

> yes definitly. have you managed to get any other printers working with
> downloadable drivers?

Yes. I do have other shared printers working with 3rd party downloadable
drivers.

> you need to refer to the 'printing support in samba 3.0'
> http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/ and that explains

<snip>

I have done exaclty what you described before. Sorry I have cut your text
for readability. A full thread is available at gmane.network.samba.general.
Maybe it's late, I still haven't figure an answer for the questions below. I
read the manual again, retry and report back tomorrow. Would you please
couple extra pointers for the questions below?

Matthew Western

unread,
Jun 3, 2003, 2:40:13 AM6/3/03
to
Hmm. i'm not sure where it's going wrong...

> > The other part is the "Install-PDF-Printer-on-Windows". Here you have
> > several options. My recommendation is the
> > "Use-the-CUPS-PostScript-Drivers-for-Windows-NT/2K/XP"
> > -and-export-with-the-help-of-cupsaddsmb" one.
>
> Sorry I'm still a little confused here. Can I do "cupsaddsmb -H
> PRNSERVER printer PDFPrinter" to setup PostScript driver (adist5.ppd)
> for Win9x/NT/2000, so users can download them from their personal
> workstations? If so, then I don't need to add arbitrary color laser
> printer from Windows?

>I tried "cupsaddsmb -v PDFprinter", but system complaints that it cannot
>find PDFprinter.ppd. I tried copy PDFprinter.ppd to almost every folder,
>but still no luck. I'm doing this right? Where should I put
>PDFprinter.ppd?

/etc/cups/ppd/HPAusco.ppd
/etc/cups/ppd/laserjet.ppd
/etc/cups/ppd/Adist4.ppd

is where my ppds live. i remember doing this once for my first HPLJ4
printer and then not doing it again but simply modifying the printers.conf
and then restarting cups. perhaps try copying an existing .ppd file to the
pdfprinter.ppd ? sorry, i'm a little lost.

i've only done one print server so i'm not an expert by any means.. :(

good luck.
regards
Matthew

Matthew Western

unread,
Jun 3, 2003, 7:00:18 PM6/3/03
to
lol. sure thing.... mine emails to the user that created it as there
we're politics about everyone seeing everyone elses .pdfs on a fileshare or
webserver. i put it on a webserver nobody knew was there so i could easily
forward the pdf on if it failed to attach to the email.

also, i'm thinking about replacing the text 'Microsoft Word - ' etc with
nothing as well. you'll see what i mean when you test it.

oh yeah. mine broke when i upgraded ghostscript hence the slamming of a few
TMPs in there. that fixed it. <sigh> i wish ghostscript people would do
some nice error messages, not something like "*** Unable to open the initial
device, quitting."

regards
Matthew

-------------------
#!/bin/sh
#
# This script is intended to be used as a CUPS backend, to create
# PDF file on-the-fly. Just create a printer using the device uri
# pdf:/path/to/dir/. When printing to this printer, a PDF file
# will be generated in the directory specified. The file name will
# be either "<jobname>.pdf" or "unknown.pdf", depending whether the
# jobname is empty or not.
#
# To use it, simply copy this script to your backend directory, and
# create a printer with the correct URI. That's it.
#
# Copyright (C) Michael Goffioul (goff...@imec.be) 2001
LOGFILE=/var/log/cups/pdf.log
PDFBIN=`which ps2pdf`
FILENAME=
# this is borrowed from printpdf script for the filename
PRINTTIME=`date +%b%d-%H%M%S`
#at the moment it's setup to email the pdf but not email the link to the
webserver.
DOMAIN="@yourdomain.com.au"
WEBSERVER="http://calypso/pdf/"
TEMP="/tmp"
TMP="/tmp"
TMPDIR="/tmp"
TEMPDIR="/tmp"

#mail stuff
DATE=`date +%d%b%Y-%H:%M:%S`
MAILFILE=/tmp/mailtemp
HEADER=/tmp/header


# case of no argument, prints available URIs
if [ $# -eq 0 ]; then
if [ ! -x "$PDFBIN" ]; then
exit 0
fi
echo "direct pdf \"Unknown\" \"PDF Writing\""
exit 0
fi

# case of wrong number of arguments
if [ $# -ne 5 -a $# -ne 6 ]; then
echo "Usage: pdf job-id user title copies options [file]"
exit 1
fi

# get PDF directory from device URI, and check write status
PDFDIR=${DEVICE_URI#pdf:}
if [ ! -d "$PDFDIR" -o ! -w "$PDFDIR" ]; then
echo "ERROR: directory $PDFDIR not writable"
exit 1
fi

echo "PDF directory: $PDFDIR" >> $LOGFILE


# Start of Matthew's modified stuff.

echo " " >> $LOGFILE
echo "Executable: $PDFBIN" >> $LOGFILE
echo "Arguments: |$1|$2|$3|$4|$5|$6|" >> $LOGFILE
echo $# $PRINTTIME >> $LOGFILE
echo "PS File: $6" >> $LOGFILE
echo "TEMP=$TEMP" >> $LOGFILE

FULLTITLE=`grep Title $6`
TITLE=${FULLTITLE:9}

#replace all not allowed characters with a _ - could do it with a regular
expression but too hard_
# \ / : * ? " < > |

TITLE=${TITLE//:/_}
TITLE=${TITLE//\//_}
TITLE=${TITLE//</_}
TITLE=${TITLE//>/_}
TITLE=${TITLE//|/_}


echo "fulltitle: "$FULLTITLE >> $LOGFILE
echo "chopped: "$TITLE >> $LOGFILE

# generate output filename
OUTPUTFILENAME=
if [ "$3" = "" ]; then
OUTPUTFILENAME="$PDFDIR/unknown.pdf"
else
# OUTPUTFILENAME="$PDFDIR/${3//[^[:alnum:]]/_}.pdf"
# I changed this to user name, and the printtime to track down who
# printed the PDF and when, samba printing just uses nobody

# default is username and date. Matt modified to read the postscript
title.
# OUTPUTFILENAME="$PDFDIR/$2-$PRINTTIME.pdf"
OUTPUTFILENAME="$PDFDIR/$TITLE.pdf"

echo "PDF file: $OUTPUTFILENAME placed in: $PDFDIR" >> $LOGFILE
fi

echo "Output file name: $OUTPUTFILENAME" >> $LOGFILE

# run ghostscript
if [ $# -eq 6 ]; then
$PDFBIN -sPAPERSIZE=a4 $6 "$OUTPUTFILENAME"

# echo " $PDFBIN -sPAPERSIZE=a4 $6 /tmp/3.pdf " >> $LOGFILE
# $PDFBIN $6 /home/mwestern/3.pdf >> $LOGFILE

echo "Outputing PDF: $PDFBIN $6 $OUTPUTFILENAME" >> $LOGFILE

cp $6 /tmp/5.ps
ps2pdf /tmp/5.ps /tmp/6.pdf >> $LOGFILE

# $PDFBIN $6 "$OUTPUTFILENAME"
#>& /dev/null

else

echo "unknown User output" >> $LOGFILE

$PDFBIN -sPAPERSIZE=a4 - "$OUTPUTFILENAME" >& /dev/null
fi

# modify ownership and permissions on the file
# - world readable
# - owns to user specified in argument
chmod a+r "$OUTPUTFILENAME"
if [ "$2" != "" ]; then
chown $2 "$OUTPUTFILENAME"
fi


#Sendmail to the owner.
echo "Sending mail: "$2$DOMAIN >> $LOGFILE

TO=$2$DOMAIN
SUBJECT='PDF Printer Job'
BODY='PDF Created :'$DATE
#echo PDF Created: $DATE >> BODY


echo From: PDFPrinter$DOMAIN >> $HEADER
echo To: $TO >> $HEADER
#echo Cc: $CC >> $HEADER
#echo Bcc: $BCC >> $HEADER
echo Subject: $SUBJECT >> $HEADER
echo "" >> $HEADER
echo $BODY >> $HEADER
echo "" >> $HEADER
echo "" >> $HEADER
echo "If your PDF job is not attached to this email please forward this
message \
to the help desk for assistance." >> $HEADER
echo "------------------" >> $HEADER
echo Filename: $OUTPUTFILENAME >> $HEADER


cat $HEADER > $MAILFILE
#uuencode "$OUTPUTFILENAME" $2-$PRINTTIME.pdf >> $MAILFILE

uuencode "$OUTPUTFILENAME" "$TITLE.pdf" >> $MAILFILE
cat $MAILFILE | /usr/lib/sendmail -t

rm $MAILFILE
rm $HEADER


exit 0


------------------

-----Original Message-----
From: Bob Crandell [mailto:b...@assuredcomp.com]
Sent: Wednesday, June 04, 2003 12:55 AM
To: mwes...@sola.com.au
Subject: RE: [Samba] Re: pdf printer


<Singing>
I want that script.
</Singing>

Thanks


mwes...@sola.com.au wrote:
>
>did you end up figuring this out? i have a working cups pdf printer.
>thanks to some guy who posted to here....
>
>i've modified my pdfprinter to email the user as well, sing out if you want
>that script....
>
>-------------------------------------------------------------------
>>Using CUPS backend to create PDF virtual printer
>>---------------------------------------------------------------
>>---------
>>

>---------------------------------------------------------------


>
>-----Original Message-----
>From: samba-...@lists.samba.org
>[mailto:samba-...@lists.samba.org]On Behalf Of Norman Zhang
>Sent: Saturday, May 31, 2003 9:04 AM

>To: sa...@lists.samba.org
>Subject: [Samba] Re: pdf printer
>
>
>Hi,
>

>Thank you for your reply.
>

>> Please use this little HOWTO:
>>
>> http://lists.samba.org/pipermail/samba/2003-March/093504.html
>>
>> The "color" all depends on the PPD you are using. If you use a B/W
>Laerprinter
>> PPD for this, your PDF will be B/W too. The suggested distiller.ppd
should
>> be alright. Do you get B/W or Color PDFs from Linux/UNIX/CUPS?
>
>I followed the exact procedure as per above URL, except I grabbed the
>adist5.ppd from the Adobe Universal PostScript Installer 1.0.6. Is that

>okay? CUPS seems to able to read it. I got color PDF when I installed an
>arbitrary color laser printer (HP Color LaserJet 8500 PS. I thought I can
>get different paper size with this model) and B/W with a B/W laser printer


>(HP LaserJet 2200 PS). Do you have a recommendation for a particular model?
>
>> > I have another question, do I need to add a Color Laser Printer Driver
>in
>> > W2K to the PDF share to generate color PDF in Windows?
>>
>> If you read the suggested HOWTO, you'll see that the driver installation
>> first takes place on CUPS. Then you have a CUPS PDF printer (also
>accessible
>> to native CUPS clients).
>

>I have setup CUPS to use PDF printing. I guess I just need to add printer
>drivers to the queue? I was adding the drivers from W2K using HP's printer


>drivers. I know it is better to use CUPS drivers, but I don't know which

>model is good and it seems to be difficult to use cupsaddsmb.


>
>> To install it on W2K, simply download the CUPS driver. Before you
download
>> it, you need to run cupsaddsmb. Before you run cupsaddsmb, you should
read
>> "man cupsaddsmb". Even more info about it is here:
>>
>> http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/
>
>I have been reading your document for the last 2 days (excellent document
>BTW). I guess I will read it again 8)
>
>Regards,
>Norman
>
>
>
>
>

--
Bob Crandell
Assured Computing
When you need to be sure.
b...@assuredcomp.com
www.assuredcomp.com
Voice - 541-689-9159
FAX - 541-463-1627
Eugene, Oregon

Norman Zhang

unread,
Jun 3, 2003, 8:00:23 PM6/3/03
to
Hi,

> > > But this only covers the "Install-PDF-Printer-on-CUPS" part.
> > >
> > > The other part is the "Install-PDF-Printer-on-Windows". Here you have
> > > several options. My recommendation is the
> > > "Use-the-CUPS-PostScript-Drivers-for-Windows-NT/2K/XP"
> > > -and-export-with-the-help-of-cupsaddsmb" one.
> >
> > Sorry I'm still a little confused here. Can I do "cupsaddsmb -H
> > PRNSERVER printer PDFPrinter" to setup PostScript driver (adist5.ppd)
> > for Win9x/NT/2000, so users can download them from their personal
> > workstations? If so, then I don't need to add arbitrary color laser
> > printer from Windows?
>
> I tried "cupsaddsmb -v PDFprinter", but system complaints that it cannot
> find PDFprinter.ppd. I tried copy PDFprinter.ppd to almost every folder,
> but still no luck. I'm doing this right? Where should I put
> PDFprinter.ppd?

I now have it working on NT/2000. But in 9x/ME, it complains that
pdfprinter.PPD not found. I checked WINNT40\0\, pdfprinter.PPD is in there.
I even made duplicates like PDFPRINTER.PPD and pdfprinter.ppd, copied the
file to a local disk, but 9x/ME still cannot find it. Could this be a bug
somewhere? I don't know why I'm seeing all these strange cases 8(

Matthew Western

unread,
Jun 3, 2003, 8:10:07 PM6/3/03
to
Hmm. i've not even tried it on windows95/98 as we are only on 2k/XP here.
i'll setup a test machine and see what i find... i have got a driver for
9x but i browsed to \\sambamachine then printers then right clicked on the
printer and sad additional drivers stuck in the windows2k terminal server CD
(lots of drivers on there) and said do it.

linux = strange case? i ask myself that several times a day as i'm trying
to replace microcrust servers with linux ones slowly but surely. why me why
me. :)

-----Original Message-----
From: samba-bounces+mwestern=affairs...@lists.samba.org
[mailto:samba-bounces+mwestern=affairs...@lists.samba.org]On Behalf
Of Norman Zhang
Sent: Wednesday, June 04, 2003 9:23 AM
To: sa...@lists.samba.org
Subject: [Samba] Re: pdf printer

Norman Zhang

unread,
Jun 3, 2003, 9:00:15 PM6/3/03
to
Hi,

> Hmm. i've not even tried it on windows95/98 as we are only on 2k/XP here.
> i'll setup a test machine and see what i find... i have got a driver for
> 9x but i browsed to \\sambamachine then printers then right clicked on the
> printer and sad additional drivers stuck in the windows2k terminal server
> CD (lots of drivers on there) and said do it.

I didn't add any other printer driver from W2K CD or from any 3rd party
vendor. I first created pdfprinter.ppd by

lpadmin -p pdfprinter -E -v pdf:/var/tmp -m adist5.pdf

then exported pdfprinter.ppd so Windows clients can download

cupsaddsmb -v pdfprinter

Now NT/2000 can download the drivers no problem. But 9x/ME complains that
they can't find pdfprinter.PPD. I think there's some subtle bugs in linking
the drivers for download, but I don't know where.

Regards,
Norman

-----Original Message-----
From: Norman Zhang

> But this only covers the "Install-PDF-Printer-on-CUPS" part.
>
> The other part is the "Install-PDF-Printer-on-Windows". Here you have
> several options. My recommendation is the
> "Use-the-CUPS-PostScript-Drivers-for-Windows-NT/2K/XP"
> -and-export-with-the-help-of-cupsaddsmb" one.

I now have it working on NT/2000. But in 9x/ME, it complains that


pdfprinter.PPD not found. I checked WINNT40\0\, pdfprinter.PPD is in there.
I even made duplicates like PDFPRINTER.PPD and pdfprinter.ppd, copied the
file to a local disk, but 9x/ME still cannot find it. Could this be a bug
somewhere? I don't know why I'm seeing all these strange cases 8(

--

Norman Zhang

unread,
Jun 4, 2003, 5:30:15 PM6/4/03
to
Hi,

> > But this only covers the "Install-PDF-Printer-on-CUPS" part.
> >
> > The other part is the "Install-PDF-Printer-on-Windows". Here you have
> > several options. My recommendation is the
> > "Use-the-CUPS-PostScript-Drivers-for-Windows-NT/2K/XP"
> > -and-export-with-the-help-of-cupsaddsmb" one.
>
> I now have it working on NT/2000. But in 9x/ME, it complains that

> pdfprinter.PPD not found. I checked WINNT\0\, pdfprinter.PPD is in there.


> I even made duplicates like PDFPRINTER.PPD and pdfprinter.ppd, copied the
> file to a local disk, but 9x/ME still cannot find it. Could this be a bug
> somewhere? I don't know why I'm seeing all these strange cases 8(

I found a workaround to the above problem. For 9x/ME clients I use the Adobe
PostScript Installer to add network printer instead of Add Printer from
Windows. Adobe PostScript Installer won't prompt me file not found. It gives
me an option to overwrite pdfprinter.PPD. If I choose Yes to overwrite,
everything works fine. I hope this is helpful to anyone who might experience
this problem.

Regards,
Norman

Norman Zhang

unread,
Jun 4, 2003, 5:40:12 PM6/4/03
to
Hi,

> I didn't add any other printer driver from W2K CD or from any 3rd party
> vendor. I first created pdfprinter.ppd by
>
> lpadmin -p pdfprinter -E -v pdf:/var/tmp -m adist5.pdf
>
> then exported pdfprinter.ppd so Windows clients can download
>
> cupsaddsmb -v pdfprinter
>
> Now NT/2000 can download the drivers no problem. But 9x/ME complains that
> they can't find pdfprinter.PPD. I think there's some subtle bugs in
linking
> the drivers for download, but I don't know where.

I found a workaround to the problem, for 9x/ME clients I use the Adobe
PostScript Installer to add my network printer rather than just click Add
Printer in Windows. Adobe PostScript Installer won't prompt me file not
found. I hope this is helpful to anyone who might experience this problem.

Regards,
Norman

--

Norman Zhang

unread,
Jun 5, 2003, 1:20:05 PM6/5/03
to
Hi,

Sorry for making more noise to the list again. I have received an official
update from CUPS. I hope this is helpful for those who are interested.

Regards,
Norman

> Your software trouble report #137 has been updated. You can check
> the status of the report and add additional comments and/or files
> at the following URL:
>
> http://www.cups.org/str.php?L137
>
> Summary: cupsaddsmb unable to add 'ppd'
> Version: 1.1.19
> Status: 2 - Closed w/o Resolution
> Priority: 4 - High, e.g. unable to print to a printer or key
> functionality not working
> Scope: 2 - Specific to an operating system
> Subsystem: Windows Driver
> Fix Version: Not Applicable
>
> Win9x driver download has a limitation of 8 character printer names. For
> printers whose name is 8 chars or less, the driver download *does* work
> with the Adobe drivers.
>
> We have no plan of working around this limit and will likely drop Win9x
> driver support in a future CUPS release.


Norman Zhang wrote:
> I didn't add any other printer driver from W2K CD or from any 3rd party
> vendor. I first created pdfprinter.ppd by
>
> lpadmin -p pdfprinter -E -v pdf:/var/tmp -m adist5.pdf
>
> then exported pdfprinter.ppd so Windows clients can download
>
> cupsaddsmb -v pdfprinter
>
> Now NT/2000 can download the drivers no problem. But 9x/ME complains that
> they can't find pdfprinter.PPD. I think there's some subtle bugs in
> linking the drivers for download, but I don't know where.

...

> I found a workaround to the problem, for 9x/ME clients I use the Adobe
> PostScript Installer to add my network printer rather than just click Add
> Printer in Windows. Adobe PostScript Installer won't prompt me file not
> found. I hope this is helpful to anyone who might experience this problem.

--

Kurt Pfeifle

unread,
Jun 7, 2003, 10:30:09 AM6/7/03
to
Norman Zhang nzhang at arkon-group.com wrote on Samba-Digest

> Tue Jun 3 16:52:33 GMT 2003


>
>
> Hi,
>
>> > > But this only covers the "Install-PDF-Printer-on-CUPS" part.
>> > >
>> > > The other part is the "Install-PDF-Printer-on-Windows". Here you have
>> > > several options. My recommendation is the
>> > > "Use-the-CUPS-PostScript-Drivers-for-Windows-NT/2K/XP"
>> > > -and-export-with-the-help-of-cupsaddsmb" one.
>> >

>> > Sorry I'm still a little confused here. Can I do "cupsaddsmb -H
>> > PRNSERVER printer PDFPrinter" to setup PostScript driver (adist5.ppd)
>> > for Win9x/NT/2000, so users can download them from their personal
>> > workstations? If so, then I don't need to add arbitrary color laser
>> > printer from Windows?
>>
>> I tried "cupsaddsmb -v PDFprinter", but system complaints that it cannot
>> find PDFprinter.ppd. I tried copy PDFprinter.ppd to almost every folder,
>> but still no luck. I'm doing this right? Where should I put
>> PDFprinter.ppd?
>

> I now have it working on NT/2000. But in 9x/ME, it complains that
> pdfprinter.PPD not found.

Try to use an 8-characters-only name for the PDF printer and it should be OK.
A hint about this was already provided at

http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/Samba-HOWTO-Collection-3.0-PrintingChapter-11th-draft.html#37

the very first question "Win9x client can't install driver"...

> I checked WINNT40\0\, pdfprinter.PPD is in there.


> I even made duplicates like PDFPRINTER.PPD and pdfprinter.ppd, copied the
> file to a local disk, but 9x/ME still cannot find it. Could this be a bug
> somewhere? I don't know why I'm seeing all these strange cases 8(
>

> Regards,
> Norman

Cheers,
Kurt [ sorry for not participating in the discussion of this problem during
the last 7 days -- I was away on a business trip.... ]

0 new messages