Bug 692613

Summary: Rasterized PDF pages are not displayed in Acrobat Reader or gswin64.exe
Product: Ghostscript Reporter: jritmeijer
Component: PDF WriterAssignee: Ken Sharp <ken.sharp>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alex, gamboz
Priority: P4    
Version: 9.04   
Hardware: PC   
OS: Windows 7   
Customer: Word Size: ---
Attachments: Source file to reproduce the issue
Rasterized PDF file

Description jritmeijer 2011-10-18 12:47:46 UTC
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.
Comment 1 jritmeijer 2011-10-18 12:48:04 UTC
Created attachment 8019 [details]
Source file to reproduce the issue
Comment 2 jritmeijer 2011-10-18 12:48:33 UTC
Created attachment 8020 [details]
Rasterized PDF file
Comment 3 Ken Sharp 2011-10-20 10:14:50 UTC
*** Bug 692617 has been marked as a duplicate of this bug. ***
Comment 4 Alex Cherepanov 2011-10-27 03:05:08 UTC
The file has wrong /Range attribute
8 0 obj
<</N 3 /Range[0 0 0 0 0 0] /Length 2576 >>
stream
...
Comment 5 Ken Sharp 2011-12-03 21:46:21 UTC
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 ***