MediaSize and PageSize synchronisation

Arne Glenstrup panic at itu.dk
Sun May 14 02:43:39 PDT 2006


> > 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?





More information about the cups mailing list