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.
Created attachment 4582 [details] bg.ps: Single page file that results in a usable pdf
Created attachment 4583 [details] bgx.ps: Multi-page file that results in a broken pdf
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
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