From 8f031e7bdbe5c59cf837d95b7b4d576a8c4dc26d Mon Sep 17 00:00:00 2001 From: Gunnsteinn Hall Date: Thu, 27 Dec 2018 17:18:52 +0000 Subject: [PATCH] remove panic in extractor --- pdf/extractor/text.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pdf/extractor/text.go b/pdf/extractor/text.go index d2930dc8..377bbf34 100644 --- a/pdf/extractor/text.go +++ b/pdf/extractor/text.go @@ -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