[gs-bugs] [Bug 689875] New: character names which are binary
strings (Type 3 fonts)
bugs.ghostscript.com-bugzilla-daemon at ghostscript.com
bugs.ghostscript.com-bugzilla-daemon at ghostscript.com
Thu May 29 02:01:42 PDT 2008
http://bugs.ghostscript.com/show_bug.cgi?id=689875
Summary: character names which are binary strings (Type 3 fonts)
Product: Ghostscript
Version: 8.62
Platform: PC
URL: ftp.jouve.fr
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P4
Component: PDF Interpreter
AssignedTo: alex.cherepanov at artifex.com
ReportedBy: dbioret at jouve.fr
QAContact: gs-bugs at ghostscript.com
We have a Pdf file s_LHS1H015.pdf. At page 1035, ghostscript exits with an error
: "unknown operator
File has an unbalanced >> (close dictionary)
...
"
Into this page, there is a Type 3 font named "T1" with characters named :
/^B /^C .... /^G
I renamed these characters: /^B -> /B
/^C -> /C
...
/^G -> /G
and the new pdf file (LHS1H015.pdf) is processed correctly by Ghostscript.
It seems that binary characters into glyph names are not allowed by Ghostscript.
Pdf objects in the original file s_LHS1H015.pdf:
3929 0 obj^M<< /Type /Encoding /Differences^M[ 1 /, /^B /^C /^E /^F /^H /^D
/^G^M]^M>>^Mendobj^M
4125 0 obj^M<< /^G 5693 0 R /^H 5301 0 R /, 4321 0 R /^B 4517 0 R /^C 4713 0 R
/^D 5497 0 R /^E 4909 0 R /^F 5105 0 R^M>>^Mendobj
After modifications (file LHS1H015.pdf):
3929 0 obj^M<< /Type /Encoding /Differences^M[ 1 /, /B /C /E /F /H /D
/G^M]^M>>^Mendobj
4125 0 obj^M<< /G 5693 0 R /H 5301 0 R /, 4321 0 R /B 4517 0 R /C 4713 0 R /D
5497 0 R /E 4909 0 R /F 5105 0 R^M>>^Mendobj
Command line:
gs -r600 -dNOCIE -dDITHERPPI=85 -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -dFirstPage=$N
BP -dLastPage=$NBP -sOutputFile=$NBP.tif LHS1H015.pdf
(NBP=1035)
The files "LHS1H015.pdf" and "s_LHS1H015.pdf" are at ftp.jouve.fr :
ftp ftp.jouve.fr
login : ghostjouve
passwd : jvegh2008
get s_LHS1H015.pdf
get LHS1H015.pdf
bye
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the gs-bugs
mailing list