Bug 688796 - typecheck error while opening a GS8.xx created PDF with customcolored type-3 font
Summary: typecheck error while opening a GS8.xx created PDF with customcolored type-3 ...
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: 8.54
Hardware: All All
: P4 normal
Assignee: Default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-14 02:08 UTC by Rolf Becker
Modified: 2008-12-19 08:31 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
EPS and PDF (46.52 KB, application/octet-stream)
2006-07-14 04:50 UTC, Rolf Becker
Details
patch (995 bytes, patch)
2008-04-06 10:19 UTC, Alex Cherepanov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Becker 2006-07-14 02:08:45 UTC
I've got a QXP4.1 EPS with outline characters, filled white and stroked red
using  0 .95 .7 0 (HS15) customcolor. QXP creates a Type-3 font where each glyph
is rendered twice, changing the fill and stroke color. The Spec says it's
unnecessary and undesirable to do so, but it is not forbidden. All GS versions
display it well. Now I created a PDF from this using GS8.15 or GS8.54. Opening
this PDF with any version of GS produces Error: /typecheck in --astore--,
Acrobat reader displays well.
The error doesn't occur if I set the stroke color to Black or if I use GS7.00 to
create the PDF. 
Files: tqxp.eps (90 MB), tqxp.pdf (4 KB)
Comment 1 Alex Cherepanov 2006-07-14 04:30:11 UTC
Thank you for using and testing Ghostscript. Unfortunately, little can be
done about the problem without the sample file.

Please try to reduce the size of the sample file and attach it to the bug report.
You can compress the file and attach the result if it is below 20 M.
You can also put your EPS file on FTP or HTTP for download.
Finally, you can mail the file on a CD to Artifex Software.
Comment 2 Rolf Becker 2006-07-14 04:50:38 UTC
Created attachment 2353 [details]
EPS and PDF

EPS 90 KB, not 90 MB, sorry.
Comment 3 Ralph Giles 2006-07-17 09:20:20 UTC
Reproduced with head. Evince (libpoppler) can open the pdf file we create.
Comment 4 Ralph Giles 2006-07-19 09:48:27 UTC
assigning to Alex for further investigation.
Comment 5 Ralph Giles 2006-07-19 09:50:50 UTC
Dan wants it. It's a problem with colorspace (element vs array) in the interpreter
Comment 6 Henry Stiles 2008-02-26 11:33:33 UTC
retest and reassign.
Comment 7 Alex Cherepanov 2008-04-06 10:19:38 UTC
Created attachment 3920 [details]
patch

Use operator .execn to keep the operand stack depth and .pdfcount value
consistent during /BuildChar execution. Operator scn depends on the correct
value of .pdfcount.

This bug is similar to the bug 689776 but the mismatch between .pdfcount and
the content of the operand stack happens in a different procedure.
Comment 8 Alex Cherepanov 2008-04-06 14:45:48 UTC
The patch is committed as a rev. 8627.
The sample file PDF file is added to the test base by rev. 8628.