Browse Source

其他-补充注释

liyijie 1 năm trước cách đây
mục cha
commit
f954b11e7d
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      PDF Office/App.xaml.cs

+ 4 - 1
PDF Office/App.xaml.cs

@@ -824,14 +824,17 @@ namespace PDF_Master
                 string resPath = Path.GetDirectoryName(typeof(MainWindow).Assembly.Location) + "\\";
                 CPDFConverter.Init(resPath);
                 LicenseError licenseerror = CPDFConverter.LicenseVerify(ConverterDevKey, ConverterDevSecret);
+                //初始化ocr库
                 CPDFConverter.InitOcrLibrary(Path.Combine(resPath, "x64"));
-                CPDFConverter.SetOCRModelPath(Path.Combine(resPath, "source"));
+                //初始化资源
+                CPDFConverter.SetOCRModelPath(Path.Combine(resPath, "source", "models"));
                 if (licenseerror != LicenseError.ERR_SUCCESS)
                 {
                     //MessageBox.Show("ComPDFKit Conversion SDK Load Failed!");
                     Console.WriteLine("CPDFConvert Load Failed.\n");
                     return false;
                 }
+                //之前1.7.0逻辑
                 //CPDFConverter.Init(resPath);
                 //CPDFConverter.SetOCRModelFolder(modelFolderPath);
             }