Summary: | Error: /undefined in findresource | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Jury Gorky <jury.gorky> |
Component: | Font API | Assignee: | Chris Liddell (chrisl) <chris.liddell> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 9.00 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: | file that causes the problem |
Description
Jury Gorky
2010-12-06 23:49:23 UTC
Your PDF file is req Hmm, sorry for the partial reply.
Your PDF file requests the CIDFont ArialMT (composed with the Identity-H CMap), but Ghostscript does not have a font with that name. GS then falls back to the default CIDFont which is given by composing the Ordering from the FontDescriptor, so it searches for a CIDFont called 'Adobe'.
It doesn't find that either, so it is forced to give up.
You need to add a font definition to cidfmap for ArialMT, the usual invocation would be something like:
/ArialMT <<
/FileType /TrueType
/Path (/...<path>..../arial.ttf)
/CSI [(Artifex) (Unicode) 0]
>> ;
If I edit /gs/Resource/Init/cidfmap on my system,and supply the relevant directory as a command line switch:
./gs -I/gs/Resource/Init
then your file works for me. Without that I get the same error message.
Note that GS is generally compiled with its resources built into the executable. so modifying files on disk does not have any effect, unless you also direct GS to use those files by specifying them using -I
Thank you! The -I switch was the option I missed (In reply to comment #2) > Hmm, sorry for the partial reply. > > Your PDF file requests the CIDFont ArialMT (composed with the Identity-H CMap), > but Ghostscript does not have a font with that name. GS then falls back to the > default CIDFont which is given by composing the Ordering from the > FontDescriptor, so it searches for a CIDFont called 'Adobe'. > > It doesn't find that either, so it is forced to give up. > > You need to add a font definition to cidfmap for ArialMT, the usual invocation > would be something like: > > /ArialMT << > /FileType /TrueType > /Path (/...<path>..../arial.ttf) > /CSI [(Artifex) (Unicode) 0] > >> ; > > If I edit /gs/Resource/Init/cidfmap on my system,and supply the relevant > directory as a command line switch: > > ./gs -I/gs/Resource/Init > > then your file works for me. Without that I get the same error message. > > Note that GS is generally compiled with its resources built into the > executable. so modifying files on disk does not have any effect, unless you > also direct GS to use those files by specifying them using -I |