개정판 3b938959
issue #000000 검색 수정
Change-Id: I7ac25e17a0b62f753c52f52b8a77b73bb3bbe2bf
KCOM/Controls/SearchPanel.xaml.cs | ||
---|---|---|
174 | 174 |
extractor.OCRMode = Bytescout.PDFExtractor.OCRMode.Off; |
175 | 175 |
//extractor.OCRLanguage = "eng"; |
176 | 176 |
//extractor.OCRLanguageDataFolder = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "tessdata"); |
177 |
|
|
178 |
extractor.OCRResolution = 300;
|
|
177 |
|
|
178 |
extractor.OCRResolution = 100;
|
|
179 | 179 |
|
180 | 180 |
//ocrAnalyzer.OCRLanguage = "eng"; |
181 | 181 |
//ocrAnalyzer.OCRLanguageDataFolder = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "tessdata"); |
... | ... | |
431 | 431 |
|
432 | 432 |
var width = Convert.ToDouble(Common.ViewerDataModel.Instance.Document_Info[item.PageNo - 1].PAGE_WIDTH); |
433 | 433 |
var height = Convert.ToDouble(Common.ViewerDataModel.Instance.Document_Info[item.PageNo - 1].PAGE_HEIGHT); |
434 |
|
|
434 | 435 |
var widthScale = width / Convert.ToDouble(extractor.GetPageRect_Width(item.PageNo - 1)); |
435 | 436 |
var heightScale = height / Convert.ToDouble(extractor.GetPageRect_Height(item.PageNo - 1)); |
436 | 437 |
|
... | ... | |
449 | 450 |
Width = ( item.searchResult.Width * widthScale *7), |
450 | 451 |
Height = (item.searchResult.Height * heightScale *7) |
451 | 452 |
}); |
453 |
|
|
454 |
//extractor.SavePageTextToFile(item.PageNo - 1, @"C:\Users\kts\AppData\Local\Temp\MARKUS\savepageText\text.txt"); |
|
455 |
//extractor.SavePreprocessedPagePreview(item.PageNo - 1, $"C:\\Users\\kts\\AppData\\Local\\Temp\\MARKUS\\savepageText\\{(item.PageNo - 1).ToString()}.png"); |
|
452 | 456 |
}); |
453 | 457 |
} |
454 | 458 |
} |
내보내기 Unified diff