Ghostscript fails on files that do not include a MediaBox. This is an invalid file, but Acrobat and evince both render it. The customer reports that gsview can also render the file given a target page size. I'm not sure if this is a regression or if there's a work-around.
Created attachment 2306 [details] 02277430A.pdf
Note: The file works with 8.00 but not 8.11.
Customer suggested just using /PageSize from the currrentpagedevice dict if the /MediaBox pget fails.
we'll do this.
Ralph, I want this bug because it affects the same parts of the code as bug 688744, which is already assigned to me. The proposed patch for the bug 688744 assumes that /MediaBox is always present. Probably, the patch should be modified to fix both bugs.
Fine by me. The fix is straightforward.
Created attachment 2319 [details] patch Use /PageSize from the currrent page device dictionary when the /MediaBox pget fails. DIFFERENCES: Testing now. The fix for the bug 688744 will be updated after this fix is committed.
There's no significant differences. Insignificant differences are: 409-01.ps - different order of file enumeration reflected in the raster 215-01.ps - different order of file enumeration in stdout only Bug687615.ps - different order of dictionary enumeration in stdout only. Multiple differences in generated PDF files in Type1C streams.
Patch is approved, please commit.
The patch is committed as revision 6893.