Bug690683.ps from tests_private/comparefiles has an unusual issue when processed by the pxlcolor driver - the boundingbox info is only available after a few drawing instructions (I think one of them is a design issue of gdevvec where a clip path is issued on open). This causes a problem with PXL since the page dimension are attributes of BeginPage and cannot be easily changed after drawing starts, when compared with other devices. I tried delaying the BeginPage until the first NewPath. (width/height are letter size values on entry, and reaches the final values only a few drawing instructions in). A workaround is to run -sDEVICE=bbox first and then set the dimension with -g explicitly; otherwise the file is wrongly processed as letter size.
While looking at this, I wonder why the DSC info is not used for setting the device width/height at all. The PS file concerned have DSC PageBoundingBox, and also does a (clip?) path early on in postscript code.
There is a 'fillpage' procedure that may be a better place to issue the 'BeginPage'.
Thanks for the tips - I'll give it a try.
Created attachment 20614 [details] Sample file This problem still occurs in the current version. gs -sDEVICE=pxlcolor -o a.pxl a.ps generates empty Letter-sized file instead of 1000x1000 point page with a black square.