[cups.general] Need help printing PDFs

Gerald Britton gerald.britton at gmail.com
Tue Sep 25 11:15:05 PDT 2007


I ran the job with loglevel debug.  The results are here:

http://pastebin.com/m1534383e

It looks like the "landscape" option was discarded.

On 9/25/07, Gerald Britton <gerald.britton at gmail.com> wrote:
> Got further this time.  The new pdftops filter works with the path
> change as you described.
>
> Two different issues:
>
> 1. if I add "-o use-acroread" I get:
>
> E [25/Sep/2007:12:51:14 -0400] [Job 39] acroread-options:
> -toPostScript -shrink -level2 -optimizeForSpeed -commentsOff
> -annotsOff -transQuality 3 -size letter
> E [25/Sep/2007:12:51:20 -0400] [Job 39] /usr/bin/acroread exited with
> exit code 139
> E [25/Sep/2007:12:51:20 -0400] [Job 39] Empty print file!
>
>      NOTE: acroread is version 8.1.1
>
> 2. if I do NOT add "-o use-acroread" I get:
>
> E [25/Sep/2007:12:51:34 -0400] [Job 40] pdftops-options: -cfg
> /etc/cups/pdftops.conf -paper letter
>
> but the file prints except that it only prints portrait (with or
> without "-o landscape")
>
> On 9/25/07, Helge Blischke <h.blischke at srz.de> wrote:
> > 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
> > _______________________________________________
> > cups mailing list
> > cups at easysw.com
> > http://lists.easysw.com/mailman/listinfo/cups
> >
>





More information about the cups mailing list