Bug 690349

Summary: corrupt PDF is generated out of PostScript-file with asian fonts
Product: Ghostscript Reporter: artifex
Component: PDF WriterAssignee: Ken Sharp <ken.sharp>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P2    
Version: 8.64   
Hardware: PC   
OS: Windows XP   
Customer: 870 Word Size: ---
Attachments: cjk.ps

Description artifex 2009-03-20 09:05:52 UTC
When converting the attached PostScript-file cjk.ps to PDF, a PDF-file is
generated, which is corrupt after the 5. page. The first 5 pages are ok, the 6th
page can not be viewed ( either with Ghostscript and AcrobatReader ). 

The PDF is generated with following command:
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -o out.pdf cjk.ps
Comment 1 artifex 2009-03-20 09:06:53 UTC
Created attachment 4854 [details]
cjk.ps
Comment 2 Ray Johnston 2009-03-26 09:42:17 UTC
Bump to custmoer priority
Comment 3 Ken Sharp 2009-03-30 07:18:58 UTC
Looks like the pdfwrite CFF font writing code is writing garbage under some
conditions. Actually it looks like it often writes some rubbish (the name index
seems always to be broken for example), but it seems that this usually doesn't
matter. In this case it does.

I'm still working on the problem, trying to figure out what's wrong with our
existing code. This is likely to take a few more days yet to resolve.
Comment 4 Ken Sharp 2009-03-31 07:03:03 UTC
Fixed in revision 9606, patch and log here :

http://ghostscript.com/pipermail/gs-cvs/2009-March/009181.html