|
|
@@ -132,8 +132,15 @@ public abstract class DocumentViewList<TDocument> : UserControl, INotifyProperty
|
|
|
var fontfile = Path.Combine(tesseractpath, "ARIALUNI.ttf");
|
|
|
if (File.Exists(fontfile))
|
|
|
{
|
|
|
- using (var fontStream = new FileStream(fontfile, FileMode.Open))
|
|
|
- processor.UnicodeFont = new PdfTrueTypeFont(fontStream, 8);
|
|
|
+ try
|
|
|
+ {
|
|
|
+ using (var fontStream = new FileStream(fontfile, FileMode.Open))
|
|
|
+ processor.UnicodeFont = new PdfTrueTypeFont(fontStream, 8);
|
|
|
+ }
|
|
|
+ catch (Exception e)
|
|
|
+ {
|
|
|
+ Logger.Send(LogType.Error,"",$"Unable to Load ARIALUNI.TTF: {e.Message}\n{e.StackTrace}");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|