MediaSize and PageSize synchronisation

Michael Sweet mike at easysw.com
Sun May 14 05:32:28 PDT 2006


Arne Glenstrup wrote:
>>> Looking in espgs-8.15.2/pstoraster/gdevcups.c:2706, I see
>>> that this PageSize update is triggered ir PageSize OR
>>> .MediaSize are set, but in espgs-8.15.2/pstoraster/gdevcups.c:2815-2864,
>>> only MediaSize is used; PageSize is not checked.  Is this
>>> correct?
>> PageSize and .MediaSize are mapped to Ghostscript's MediaSize in
>> lib/gs_setpd.ps.
> 
> OK.  I don't have any deep knowledge of the code, I just thought
> it was strange to test both, but only use the value of one. I was
> imagining scenarios where PageSize would be changed, but .MediaSize
> retained some default value, which would then incorrectly be used.
> 
> Anyway, I still have the problem of the PageSize being reset to
> Letter size.  How do you suggest I go about debugging this?

Put together a short test file that shows the problem and then file
a STR at:

     http://www.cups.org/espgs/str.php

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com




More information about the cups mailing list