Generalize the getFont function because some /Resources have a direct dictionary as value for their /Font property

This commit is contained in:
Tissevert 2020-02-04 17:04:42 +01:00
parent cefb08ee50
commit a2b66ac6d6

View file

@ -65,8 +65,7 @@ getFont pageDict =
key "Resources" pageDict key "Resources" pageDict
//= getResource //= getResource
\\= key "Font" \\= key "Font"
>>= follow >>= getResource
\\= dict
cache :: (ObjectId -> T CMap) -> ObjectId -> T CMap cache :: (ObjectId -> T CMap) -> ObjectId -> T CMap
cache loader objectId = cache loader objectId =