Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Support for fonts with custom glyph names #312

Open
Beatris opened this issue Jan 14, 2022 · 1 comment
Open

Support for fonts with custom glyph names #312

Beatris opened this issue Jan 14, 2022 · 1 comment

Comments

@Beatris
Copy link

Beatris commented Jan 14, 2022

I'm dealing with a pdf document with font that has some custom glyph names (i.e. glyph names not in AGL and do not follow AGLFN).
As a result, I get "(cid:)" in the parsed text.

To overcome this I'll have to change the cid2unicode map of the font. It would be very helpful to be able to configure the pdfminer to load this map from a separate font file. So, it can accept a folder where there will be some font files and will load the cid2unicode from there (if such file exists) using a tool like https://fonttools.readthedocs.io/en/latest/#

@JKsang
Copy link

JKsang commented Mar 10, 2022

Can you give an example how to configure the pdfminer to load this map from a separate font file ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants