[poppler] Improvement of "Missing language pack" message?

suzuki toshiya mpsuzuki at hiroshima-u.ac.jp
Mon Dec 5 21:18:08 PST 2011

Hi all,

When poppler could not load the required mapping table resources,
is it an improvement to make the message telling the directory to
store the mapping files?

Recently, I saw a post from pdftotext user who was wondering
what should be done when pdftotext says "Missing language pack".

It is easy to tell "install poppler-data", but it is not so easy
to detect which directory to install it. Especially, when the user
is using a prebuilt binary without configuration information,
some try-and-error tests would be required. The vanilla installation
of poppler does not make the directory ${prefix}/share/poppler,
so there is no reliable mark.

I will try to make a patch to make "Missing language pack" more
verbose, with the pathname to install mapping files (some catch-ball
is required between GlobalParams and GfxFont class, because this
message is issued when no mapping table is found in cache). If it
is a bad idea, and won't be acceptable, please let me know.


suzuki toshiya wrote:
> Hi,
> Have you installed poppler-data which is a package collecting
> the resource files converting embedded fonts to coded texts?
> Regards,
> mpsuzuki
> 杨辉强 wrote:
>> Hi, all:
>> As is known to everyone, some pdf files are generated from images, 
>> i.e, the pdf file text can't be selected and copied, it just contains 
>> some images. When pdftotext process this type pdf file, it reports 
>> following errors:
>> Error: Missing language pack for 'Adobe-GB1' mapping
>> Error: Missing language pack for 'Adobe-GB1' mapping
>> Error: Unknown font tag 'F0'
>> Error (675): No font in show
>> Error (683): No font in show
>> Error (688): No font in show
>> Error (693): No font in show
>> Error (705): No font in show
>>   I wish you can give me some advices.
>> Thank you!
>> Best wishes!

More information about the poppler mailing list