Skip to content

Is it possible to know using this tool if a font is embedded and has to_unicode map? #36

Open
@kfcaio

Description

@kfcaio

The workflow of one of my scripts relies on calling subprocess.run for each pdf page to get its respective pdffonts output. Those calls are expensive, so I'm looking forward to better ways to identify likely problematic fonts from font name, enconding, "embeddedness" and unicode conversion.

Example of pdffonts output:

name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
DIIEDG+Arial                         CID TrueType      Identity-H       yes yes no   51834  0
DIIEDH+Arial                         CID TrueType      Identity-H       yes yes no   51831  0
DIIDPF+ArialMT                       CID TrueType      Identity-H       yes yes yes  51824  0
DIIEBG+TimesNewRomanPSMT             CID TrueType      Identity-H       yes yes yes  51821  0
[none]                               Type 3            Custom           yes no  no   51861  0
Arial                                TrueType          WinAnsi          yes no  no   67975  0

Is it possible to extract those informations just with poppler backend used here? I just took a look at the source code and I've not found something like that.

Thanks in advance,

Metadata

Metadata

Assignees

No one assigned

    Labels

    poppler-cppNeed to be fixed upstreamquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions