Hi,

regards Mandrake 7.2 beta distr.
Had some hard time on my Mandrake 7.1:
cups installed, driver searched for Laserjet IIIP without Postsript.
laserjetplus.ppd works but looks ugly, gimp (stp) looks nice, but does
not work correctly: my old laserjet IIIp does not understand "PJL" only
"PCL" -> so patch ppd-file to set "pjl => '0'" to prevent printing one 
empty page saying: "@PJL JOB NAME ="CUPSOMATIC"".
Nevertheless everything is printed as "PCL with US letter page size"!
Regardless of whether source ps file is A4 or whatever, regardless
of cups settings, regardless of command line options to gs 5.50
(-sPAPERSIZE=a4, does not help, -sFIXEDMEDIA does not help, 
-sPAPERSIZE=A4 is not accepted by gs, -sPageSize=A4|2100x2970|..., 
-sMediaSize=...) nothing works, everything gives US letter.
Looking at the sources: gs knows "a4", stp searches for "A4".
Options for resolution, dithering type, ... are not passed to the gs stp
driver by any ppd. It might be possible, if you could pass the ppd-file
to gs, but it does not look like you could in the source code.

stp gives nice graphics, but produces PCL code which will be treated as
binary/raw by cups -> no setting or corrections of page/resolution
... will work, cause it's not a simple postscript ppd.


So we have two problems:
cups seems not really to be able to support all options of the
gimp-print system for PCL printers.
gs 5.50 is unable to set the page size to anything other for the stp
driver.

Versions:
Name        : cups                         Relocations: (not
relocateable)
Version     : 1.1.3                             Vendor: MandrakeSoft
Release     : 8mdk                          Build Date: Wed 27 Sep 2000
10:34:03 AM CEST
Install date: Fri 29 Sep 2000 09:56:40 PM CEST      Build
Host: no.mandrakesoft.com
Group       : System/Servers                Source
RPM: cups-1.1.3-8mdk.src.rpm
Size        : 6925477                          License: GPL
Packager    : Till Kamppeter <[EMAIL PROTECTED]>
URL         : http://www.cups.org
Summary     : Common Unix Printing System

Install date: Sat 30 Sep 2000 04:44:18 AM CEST      Build
Host: lt-ml.hd.think
Group       : Publishing                    Source
RPM: ghostscript-5.50-27mdk.src.rpm
Size        : 7710308                          License: GPL
URL         : http://www.cs.wisc.edu/~ghost/
Summary     : PostScript interpreter and renderer, all printer drivers
Description :

Well rebuilding did not help either -> it behaves just like the
downloaded binary packages.


I changed "cupsomatic" no to rely on cups to pass values to gs
(if type 'G' {...} else { #CUPS should have set }). Therefore
there are more values set as there would be usually, added line
to print commandline when debugging to "cupsomatic":

Cupsomatic backend version 0.4f running...
called with arguments: '37','root','Test Page','1',''
ppd=//etc/cups/ppd/Angela.ppd
Default for option GSResolution is 600DPI
Default for option Dither is AdaptiveHybrid
Default for option Model is pcl-3
Default for option Quality is 300x300DPI
Default for option InputSlot is Standard
Default for option ImageType is Photos
Default for option PageSize is A4
Default for option Gamma is 1.0
Default for option Cyan is 1.0
Default for option Density is 1.0
Default for option Saturation is 1.0
Default for option Magenta is 1.0
Default for option Yellow is 1.0
Default for option Brightness is 1.0
Default for option Contrast is 1.0
Default for option Grayscale is 1
options: -><-
PJL: 12345X@PJL JOB NAME="CUPSOMATIC"
<job data>
12345X@PJL EOJ
Final value for option GSResolution is 600DPI
Final value for option Dither is AdaptiveHybrid
Final value for option Model is pcl-3
Final value for option Quality is 300x300DPI
Final value for option InputSlot is Standard
Final value for option ImageType is Photos
Final value for option PageSize is A4
Final value for option Gamma is 1.0
Final value for option Cyan is 1.0
Final value for option Density is 1.0
Final value for option Saturation is 1.0
Final value for option Magenta is 1.0
Final value for option Yellow is 1.0
Final value for option Brightness is 1.0
Final value for option Contrast is 1.0
Final value for option Grayscale is 1
/usr/lib/cups/filter/cupsomatic: prepended:
<</HWResolution[600 600]>>setpagedevice
<</Dither(Adaptive Hybrid)>>setpagedevice
<</Quality(300x300 DPI)>>setpagedevice
<</InputSlot(Standard)>>setpagedevice
<</ImageType 2>>setpagedevice
<</PageSize[595 842]/ImagingBBox null>>setpagedevice
<</Gamma 1.000000>>setpagedevice
<</Cyan 1.000000>>setpagedevice
<</Density 1.000000>>setpagedevice
<</Saturation 1.000000>>setpagedevice
<</Magenta 1.000000>>setpagedevice
<</Yellow 1.000000>>setpagedevice
<</Brightness 1.000000>>setpagedevice
<</Contrast 1.000000>>setpagedevice
<</Color 0>>setpagedevice
gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=stp  -sModel=pcl-3
-sOutputFile=- -
gs  PID pid2=22053
tail process done writing data to *main::STDOUT








btw.
qtcups:
qtcups
qtcups: error in loading shared
libraries: /usr/lib/libqtcups.so.1: undefined
symbol: event__9QLineEditP6QEvent

Name        : qtcups                       Relocations: (not
relocateable)
Version     : 1.0                               Vendor: MandrakeSoft
Release     : 10mdk                         Build Date: Tue 26 Sep 2000
09:44:08 AM CEST
Install date: Fri 29 Sep 2000 10:23:06 PM CEST      Build
Host: no.mandrakesoft.com
Group       : Publishing                    Source
RPM: qtcups-1.0-10mdk.src.rpmSize        : 359784
License: GPL
Packager    : Till Kamppeter <[EMAIL PROTECTED]>
URL         : http://sourceforge.net/projects/cups
Summary     : QTCUPS - a CUPS interface and library for Qt


which might simply be a problem of qt2-Version:

Install date: Tue 25 Jul 2000 05:01:51 AM CEST      Build
Host: kenobi.mandrakesoft.com
Group       : System/Libraries              Source
RPM: qt2-2.1.0-5mdk.src.rpm
Size        : 12016699                         License: QPL
Packager    : Guillaume Cottenceau <[EMAIL PROTECTED]>
URL         : http://www.trolltech.com/products/qt.html
Summary     : Shared library for the Qt2 GUI toolki
Description :




-- 
Mit freundlichen Gruessen
M. Lenze
---------------------------------------------------------------
Thinking Objects Software GmbH              [EMAIL PROTECTED]
Kranstr. 8, 70499 Stuttgart, Germany          +49 711 838981-50
fax +49 711 838981-69 cel. +49 170 7917721 home +49 6221 618036




Reply via email to