remove panic in extractor

This commit is contained in:
Gunnsteinn Hall 2018-12-27 17:18:52 +00:00
parent dbbef4fd05
commit 8f031e7bdb

View File

@ -1277,7 +1277,6 @@ func (to *textObject) getFontDict(name string) (fontObj core.PdfObject, err erro
fontObj, found := resources.GetFontByName(core.PdfObjectName(name))
if !found {
common.Log.Debug("ERROR: getFontDict: Font not found: name=%#q", name)
panic(errors.New("font not in resources"))
return nil, errors.New("font not in resources")
}
return fontObj, nil