[cups.general] Need help printing PDFs

Helge Blischke h.blischke at srz.de
Tue Sep 25 09:35:31 PDT 2007


Gerald Britton wrote:
> OK -- got the stuff in the right places.  I renamed my original
> pdftops to pdftops.old and renamed the new filter from pdftops.pl to
> pdftops and made it executable.  I tried the command:
> 
> lp -d printer mypdf.pdf
> 
> and got no output.  Looking at the script, I see a reference to the variable:
> 
> CUPS_SERVERROOT
> 
> which is not set in my environment.  I see that the script dies if the
> variable is not set, which is probably why I got no output.
> 
> Where should this variable be set?  In my session? or in the cups
> startup script?
> 

The environment variable is set by the scheduler when the filter chain
is established.
Did you put the sample config file into that directory.
If your CUPS is istalled as default this will be /etc/cups/, but
if it is installed in /usr/local, it will be /usr/local/etc/cups/ .

In the script, there is a statement which usually reads

$pdftops_path = "/usr/local/bin/pdftops";	# path to the xpdf utility

If the (absolute) path of that utility on your box is different
from the above, you need to modify this statement.

If it does not work, please set
LogLeven debug
in your cupsd.conf, try again and post (an URL to) the log file
(the relevant part).

BTW, in any case you should see a message tagged "E" in the first
column that tells what config file has been used to process the job.

Helge


-- 
Helge Blischke
Softwareentwicklung

H.Blischke at acm.org




More information about the cups mailing list