PROB 1: When GS_8_1X branch pdfwrite is used to convert the attached PS file to PDF, some characters are missing from the last page (black layer). Both gs and Acrobat Reader display missing characters. PROB 2: When the HEAD rev is used to convert the PS to PDF, the result is even worse. When the resulting PDF is displayed with gs, an error is issued because the Type3 font does not contain the /M glyph in the CharProcs, and the Type3 doesn't contain a .notdef character. With Acrobat Reader, the file shows missing characters. PROB 3: Also the PDF file created by Acrobat Distiller is MUCH smaller than the file created with Ghostscript
Created attachment 688 [details] Input PS file File that GS doesn't convert to PDF correctly.
Created attachment 689 [details] PS file converted using Distiller
Created attachment 690 [details] PDF created using gs 8.1x branch
Created attachment 691 [details] PDF created using HEAD gs (as of date of bug submission)
1. Can't reproduce with the current CVS HEAD. Likely you didn't apply the patches http://www.ghostscript.com/pipermail/gs-cvs/2004-May/004506.html http://www.ghostscript.com/pipermail/gs-cvs/2004-May/004507.html 2. Should it go to GS_8_1X ? 3. Yes, GS generates a longer file. To be analyzed.
Well, I've gort an answer for (3). The original PS file emulates an enbolded font with printing a glyph 4 times with small offsets. Adobe Distiller drops this effect. GS preserves this effect with creating a Type 3 font, which prints a glyph 4 times - same as the original PS does. Thus it's a feature rather than a bug.
Oops, with the current HEAD I can see missed glyphs in the last page with Acrobat Reader 5 and with GS. To be analyzed.
Created attachment 694 [details] A reduced test Attaching a reduced test. It prints 2 characters 'E', one with white color, and another one with black color. Converting with distiller the second one is visible. Converting with GS both are invisible. The problem is that the white color appears written into the charproc, but it must not.
Patches http://www.ghostscript.com/pipermail/gs-cvs/2004-June/004533.html http://www.ghostscript.com/pipermail/gs-cvs/2004-June/004534.html http://www.ghostscript.com/pipermail/gs-cvs/2004-June/004535.html http://www.ghostscript.com/pipermail/gs-cvs/2004-June/004536.html
Please note that the fixed GS generates a PDF, which Adobe Reader 6 reads fine. However there is a problem with Acrobat Reader 5, which IMO is Adobe bug : with the test document of the bug 687489 it paints an "invisible" text in the 4th page. That text isn't visible when viewing with Adobe reader 6 and with GS. The text is painted with a white color, but AR 5 erroneusly paints it with black.
Fixed in GS_8_1X with http://www.ghostscript.com/pipermail/gs-cvs/2004-June/004559.html http://www.ghostscript.com/pipermail/gs-cvs/2004-June/004561.html