Background: I originally identified this issue during PDF/A conversion for pages that contain transparent objects. I know these transparent objects can be skipped, but I have found the same problem during 'non PDF/A' conversion as well. The problem occurs when processing a PDF file using pdfwrite and the output page is rasterized. The resulting PDF file does not render in Acrobat Reader or the viewer that ships with Ghostscript. However, the Foxit PDF Reader displays the PDF file just fine. I have carried out an extensive search in Google as well the GS documentation for possible solutions, but I was unable to find one. I am using the 64 bit Windows version of GS 9.04. The problem can be reproduced as follows: 1. Download the attached 'Source-PreRaster.pdf' file (it contains transparent content to force the problem to happen). 2. Execute the following command: gswin64c -dHaveTransparency=false -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -r300 -sOutputFile=rastered.pdf "Source-PreRaster.pdf" 3. The result is the attached 'rastered.pdf' file. 4. Open the rastered.pdf file using Acrobat reader or gswin64.exe. Dropping the -dHaveTransparency switch will stop the problem from occurring as the resulting file will not be rasterised, but I am using it to reproduce the behaviour I am getting during PDF/A conversion, which I assume is related.
Created attachment 8019 [details] Source file to reproduce the issue
Created attachment 8020 [details] Rasterized PDF file
*** Bug 692617 has been marked as a duplicate of this bug. ***
The file has wrong /Range attribute 8 0 obj <</N 3 /Range[0 0 0 0 0 0] /Length 2576 >> stream ...
Marking as duplicate, we will fix this under the auspices of the customer issue. *** This bug has been marked as a duplicate of bug 692717 ***