Depending on how the resolution for rendering is set and how -dBufferSpace is set, the attached PDF-file is correctly converted, converted with a wrong extent or not converted. The different command lines used can you see in the attached Batch-file. The comment says id the file can be converted, not converted or converted with wrong extent.
Created attachment 4615 [details] Sample PDF-file
Created attachment 4616 [details] Sample command lines for GhostScript-call
Created attachment 4620 [details] patch The attached patch fixes the the problem with the command line: bin/gs -sDEVICE=pngmono -dBufferSpace=200000 -sOutputFile="out_buffer200000_600DPI.png" -r600 -dBATCH -dNOPAUSE -q -f"input.pdf" -c quit I've verified that the other problem reported still occur with gshead (r9236). Also, the problem is not confined to pngmono, any 1bpp output format fails with this command line: bin/gs -sDEVICE=pbmraw -dBufferSpace=100000000 -sOutputFile=/dev/null input.pdf
Created attachment 4621 [details] patch The sample file installs singular text matrix 0 0 0.99 0 3059 569 Tm. The patch adds special, tolerant to singular matrix processing, to the case when ImageMatrix is derived from the CTM, which happens in cached character rendering. Local regression testing shows no differences. Minor differences are possible at higher resolutions because of the difference in rounding errors. Testing on "GPL Ghostscript SVN PRE-RELEASE 8.64" shows that there's no difference between runs and -dBufferSpace=100000000 is OK. >md5sum *.png 63f3187d71dc9173ce030bd62ad5fd3f *out_buffer100000000_400DPI.png d5044057d3899e7a823462a385717755 *out_buffer100000000_600DPI.png 63f3187d71dc9173ce030bd62ad5fd3f *out_buffer20000000_400DPI.png d5044057d3899e7a823462a385717755 *out_buffer20000000_600DPI.png 63f3187d71dc9173ce030bd62ad5fd3f *out_buffer200000_400DPI.png d5044057d3899e7a823462a385717755 *out_buffer200000_600DPI.png 63f3187d71dc9173ce030bd62ad5fd3f *out_noBuffer_400DPI.png d5044057d3899e7a823462a385717755 *out_noBuffer_600DPI.png
Please commit the patch so we can update the customer.
The patch is committed as a rev. 9253. Regression testing shows no differences.