PDF Service with Samba
Matt Nelson
n5tkn
Mon May 17 11:43:39 PDT 2004
Have you gotten any help with this? I'd like to set it up too but would
like to know of any pitfalls before hand
--
Matt
On Wed, 2003-01-29 at 08:43, Tim Wunder wrote:
> I've recently read an article written in 2001 for Linux Gazette,
> http://www.linuxgazette.com/issue72/bright.html, concerning setting up a
> PDF service with Samba. It looked rather interesting and fairly
> straightforward to set up, so I gave it a shot. I'm currently using
> Samba 2.2.0 (I know, I need to update...) as the server and the clients
> are Win 2K SP1.
>
> The problem I'm having is that I can't seem to get any decent output. I
> have Samba automatically load the printer as described in the
> "Streamlining" section of the article, and that seems to be working fine
> (the automatic printer setup part). Unfortunately, it doesn't appear to
> be yielding a decent PDF file, I keep getting a 2-page PDF file with the
> following on page 2:
> ERROR: syntaxerror
> OFFENDING COMMAND: %ztokenexec_continue
> STACK:
> -filestream-
>
> Perhaps someone here has a clue on what may be wrong.
>
> Potentially relevant troubleshooting bits below:
>
> The printer related sections of my smb.conf file:
> [printers]
> path = /home/netshare/spool
> printable = Yes
> printer driver = "HP LaserJet 2200 Series PS"
> printer driver location = \\%h\printer$
> browseable = No
>
> .. file shares skipped ...
>
> [pdfoutput]
> path = /home/netshare/pdf
> force user = nobody
> read only = No
> guest ok = Yes
>
> [pdf]
> path = /tmp
> guest ok = Yes
> printable = Yes
> print command = /usr/bin/printpdf %s
> lpq command =
> lprm command =
> printer driver = "HP LaserJet 2200 Series PS"
> printer driver location = \\%h\printer$
>
> [printer$]
> path = /etc/samba/printdrivers
> guest ok = Yes
>
> [LaserJetIII]
> comment = LaserJetIII in Inv Ctrl
> path = /home/netshare/spool
> read only = No
> guest ok = Yes
> printable = Yes
> printer name = LaserJetIII
> printer driver = "HP LaserJet 2200 Series PS"
> printer driver location = \\%h\printer$
> oplocks = No
> share modes = No
>
>
> $ ls -l /etc/samba/printdrivers/
> total 44
> -rwxr--r-- 1 root root 44386 Jan 28 11:59 hp2200_7.ppd
>
> $ cat /etc/samba/printers.def
> HP LaserJet 2200 Series PS:HP2200_7.PPD:hp2200_7.ppd:::RAW:hp2200_7.ppd
>
> I've tested ps2pdf by creating a PostScript File printer in Windows,
> printed to a file, then used
> /usr/bin/ps2pdf postscript_test.ps
> and got a good PDF file as output.
>
> I also tested the /usr/bin/printpdf script with the same
> postscript_test.ps file and managed to create a perfectly good PDF in
> the appropriate directory.
>
> Any ideas?
>
> Thanks,
> Tim
>
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
--
Matt Nelson <n5tkn at zonekeeper.org>
More information about the Linux-users
mailing list