Bug 690160

Summary: Patterns are not correctly converted in multi-page documents
Product: Ghostscript Reporter: Mark de Does <mark>
Component: PDF WriterAssignee: Ken Sharp <ken.sharp>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: 8.63   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: bg.ps: Single page file that results in a usable pdf
bgx.ps: Multi-page file that results in a broken pdf

Description Mark de Does 2008-11-07 02:05:59 UTC
The attached files define and then render patterns.

bg.ps has one page.
bgx.ps is the same file with two additional showpages.

As postscript, the files both render nicely.

When both files are converted to pdf (ps2pdf), the single page pdf 
renders fine. The multi page one makes both acroread and gs stumble.

Acroread complains that it cannot find the patterns on the subsequent pages.
Comment 1 Mark de Does 2008-11-07 02:07:57 UTC
Created attachment 4582 [details]
bg.ps: Single page file that results in a usable pdf
Comment 2 Mark de Does 2008-11-07 02:10:06 UTC
Created attachment 4583 [details]
bgx.ps: Multi-page file that results in a broken pdf
Comment 3 Marcos H. Woehrmann 2008-11-07 09:07:03 UTC
I've duplicated the problem with gs8.54, gs8.63, and gshead (r9202).  The
command line I'm using:

  bin/gs -sDEVICE=pdfwrite -o test.pdf ./bgx.ps
Comment 4 Ken Sharp 2009-08-19 02:01:10 UTC
This now works correctly with the HEAD revision. I suspect the problem was fixed
in revision 9987, patch here :

http://ghostscript.com/pipermail/gs-cvs/2009-August/009691.html