Auto is missing in kprinter; still a problem

Herbert Engelmann Herbert.Engelmann at lrz-muenchen.de
Wed Jul 27 13:56:15 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----

Am Mittwoch, 27. Juli 2005 12:10 schrieb Goffioul Michael:

>
> kprinter by itself do not process the PS data, so it is not putting
> those PageSize or PageRegion statement in the print data. It just
> take the PS generated by the app and send it to CUPS with the selected
> option set. What could be interesting is to know what print options are
> sent by kprinter (if debug is enabled you can see them in a terminal)
> and maybe also the PS file (the easiest is to schedule the printing to
> "Never" and look for the print file in the CUPS spool directory).
>
> Looking at the CUPS code, it looks like CUPS is just appending a choice
> "Auto" to the option "InputSlot" with no PS code associated. Having the
> same in the PPD file should have the same impact.
>

Thank you

Here is what I found:

kprinter sends the original file ( already postcript but without PageSize
or PageRegion ) to the cups server. It sends also the metadata. This metadata
I can see in the control file also in the spool directory of the cups server.

The original print file is unchanged, as you said above.

The control file does not include the keyword "InputSlot" if I select the
default InputSlot as it is stated in the ppd file. It includes the keyword
"InputSlot" along with the selected InputSlot if I select any other slot
than the default. The page format seems to be encoded in there also, but 
I am not able to decipher it exactly.

But my problem remains.

As I stated in my previous message, if the selected InputSlot is included in
the ppd file there is only a "PageRegion" statement in the postscript file,
but I need a "PageSize" statement. I know now, that cups inserts these
statements. So there are, in my opinion, two possible solutions:

1) kprinter offers an InputSlot called "Auto", which is not in the ppd file.

2) cups recognizes an InputSlot called "Auto" and puts a "PageSize" statement
   into the postscript file instead of "PageRegion" although there is a Slot
   called "Auto" in the ppd file.

That is because having "Auto" in the ppd file is not the same as appending
"Auto" without it being in the ppd file.

Regards

Herbert Engelmann
- -- 
H. Engelmann, 089-289-28836, engelmann at lrz.de
PGP-Key : http://www.lrz-muenchen.de/~engelmann/info/pgp.em.html

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3in
Charset: noconv

iQCVAwUBQud2YKhxGsmXUG+lAQFRTQQAiXDobSehWYRZuk9NrhGbI8lxClge8ccn
v+s4zdruL2JEE7BvnHnSuUGhOtuZOT00LylUMpRoE8sg8TZZQopQjeYSiE+Siu7F
d/6Zypk50pVYKgIrFwpKGQnFeWUHrzMoAS3kBsEhcETn8XtjPgF4rdBGQ0KWBAEq
Wem38c9B64w=
=q2fX
-----END PGP SIGNATURE-----



More information about the kde-print mailing list