[cups.general] CUPS 1.4.2 on CentOS6: Problems with -o fitplot option

Helge Blischke h.blischke at acm.org
Fri Nov 4 08:17:21 PDT 2011


Jan Hubený wrote:

> Hello,
> 
> we have problems with printing postscript (or pdf) files with the -o
> fitplot option on our server.
> 
> Our server configuration is following
> 
> CentOS 6, CUPS 1.4.2, ghostscript 8.70
> 
> when we tested  the fitplot option with following commands:
> 
> lpr -Pprinter -o fitplot  test.ps
> lp -d printer test.ps -o fitplot
> 
> It seems that the option fitplot is completely ignored. The printer
> output is same as without this option. Further, it is not problem of one
> specific printer, the behaviour is same on all 40 printers in our company.
> 
> Moreover we suppose that the problem  is in the CentOS distribution of
> CUPS because of this two reasons:
> 
> 1) We test the cups print server with the identatical configration
> (files in /etc/cups/) and ppd's on Ubuntu server and the fitplot option
> works correctly on this configuration.
> 2) We have found a Redhat EL5 bug report which is quite similar to our
> problem and CentOS 6 is just free RedHat EL6 recompilation.
>    for the bug report see
>    https://bugzilla.redhat.com/show_bug.cgi?id=629932
> 
> Finally, my questions:
> 
> 1) Did anybody in this conference solve this problem (on CentOS6)? How
> (workaround)?
> 2) Is there a way how to test where in the cups filter chains is the
> fitplot option ignored on my server?
> 
> 
> With regards,
> 
> Jan Hubeny
> 
> 
> 
> 
> __________ Information from ESET Mail Security, version of virus signature
> database 6593 (20111101) __________
> 
> The message was checked by ESET Mail Security.
> http://www.eset.com

Jan,

thanks for the files. Looking into the input file (test.ps) reveals that the 
page setup section of the (only) page contains the statement
595 842 /a4 setpagesize
which forces the printer to use an A4 page size ignoring whatever  the 
pstops filter might have inserted in the global setup section. Thus the 
PostScript job itself cancels any fit-to-page implementation by the pstops 
filter.
Moreover, the pstops filter does the page fitting by computing the scale 
factor for page fitting from both the specified media size (job options of 
default page size from the PPD) and the job's bounding box. As both of them 
specify A4 page size, there is in fact no scaling to do.

What did you expect instead?

Helge





More information about the cups mailing list