mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 10:16:21 +01:00
...
This commit is contained in:
parent
b6c8d9da5e
commit
316d0c35a1
1 changed files with 1 additions and 0 deletions
|
|
@ -399,6 +399,7 @@ dedup_type3_fonts(PDFDoc *self, PyObject *args) {
|
|||
|
||||
PdfVecObjects &objects = self->doc->GetObjects();
|
||||
for (auto &k : objects) {
|
||||
if (!k->IsDictionary()) continue;
|
||||
const PdfDictionary &dict = k->GetDictionary();
|
||||
if (dictionary_has_key_name(dict, PdfName::KeyType, "Font")) {
|
||||
const std::string &font_type = dict.GetKey(PdfName::KeySubtype)->GetName().GetName();
|
||||
|
|
|
|||
Loading…
Reference in a new issue