The attached patch for selecting paper sizes when generating output to PCL devices has been submitted to, and accepted by, the ghostscript development team. I'd like to see it incorporated into the RedHat ghostscript release before the ghostscript team puts out another release, so that I can stop maintaining my own, customized version of the RedHat ghostscript package with this patch in it. The comments in the patch explain how it works. Here's what the ghoscript developers had to say about it: >This patch looks fine. I agree with your logic regarding paper width >deserving greater priority than paper height. > >I think it would be slightly better to put the paper sizes in an >array, and iterate through it, rather than inlining all the code with >the CHECK_PAPER_SIZE macro, but it's not a showstopper. > >My thinking is that this should be committed to HEAD only, as it is >more of an enhancement than a bug fix, and that it carries the >potential to change existing behavior unexpectedly. Since Jonathan >doesn't have CVS access, I'm committing it now.
Created attachment 27274 [details] patch to make ghostscript better about selecting PCL paper sizes
Thanks for the patch.