mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-29 13:48:54 +08:00
remove panic in extractor
This commit is contained in:
parent
dbbef4fd05
commit
8f031e7bdb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user