mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
b6c8d9da5e
commit
316d0c35a1
@ -399,6 +399,7 @@ dedup_type3_fonts(PDFDoc *self, PyObject *args) {
|
|||||||
|
|
||||||
PdfVecObjects &objects = self->doc->GetObjects();
|
PdfVecObjects &objects = self->doc->GetObjects();
|
||||||
for (auto &k : objects) {
|
for (auto &k : objects) {
|
||||||
|
if (!k->IsDictionary()) continue;
|
||||||
const PdfDictionary &dict = k->GetDictionary();
|
const PdfDictionary &dict = k->GetDictionary();
|
||||||
if (dictionary_has_key_name(dict, PdfName::KeyType, "Font")) {
|
if (dictionary_has_key_name(dict, PdfName::KeyType, "Font")) {
|
||||||
const std::string &font_type = dict.GetKey(PdfName::KeySubtype)->GetName().GetName();
|
const std::string &font_type = dict.GetKey(PdfName::KeySubtype)->GetName().GetName();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user