개정판 223975f7
Issue #0001 Angle 제외 후 Merge
Change-Id: I40be231c15f22103d9d943588b3166feda837d04
KCOM/Controls/SearchPanel.xaml.cs | ||
---|---|---|
99 | 99 |
})); |
100 | 100 |
|
101 | 101 |
extractor.LoadDocumentFromFile(Common.ViewerDataModel.Instance.searchPDF.FullName); |
102 |
ocrAnalyzer.LoadDocumentFromFile(Common.ViewerDataModel.Instance.searchPDF.FullName); |
|
102 |
//ocrAnalyzer.LoadDocumentFromFile(Common.ViewerDataModel.Instance.searchPDF.FullName);
|
|
103 | 103 |
|
104 | 104 |
if (pageoption) |
105 | 105 |
{ |
106 | 106 |
var currentPage = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.CurrentPage.PageNumber - 1; |
107 | 107 |
|
108 |
Bytescout.PDFExtractor.OCRAnalysisResults analysisResults = ocrAnalyzer.AnalyzeByOCRConfidence(currentPage); |
|
109 |
ocrAnalyzer.ApplyResults(analysisResults, extractor); |
|
108 |
//Bytescout.PDFExtractor.OCRAnalysisResults analysisResults = ocrAnalyzer.AnalyzeByOCRConfidence(currentPage);
|
|
109 |
//ocrAnalyzer.ApplyResults(analysisResults, extractor);
|
|
110 | 110 |
|
111 | 111 |
if (extractor.Find(currentPage, searchString, false)) |
112 | 112 |
do |
... | ... | |
124 | 124 |
for (int i = 0; i < pageCount; i++) |
125 | 125 |
{ |
126 | 126 |
Bytescout.PDFExtractor.OCRAnalysisResults analysisResults = ocrAnalyzer.AnalyzeByOCRConfidence(i); |
127 |
ocrAnalyzer.ApplyResults(analysisResults, extractor); |
|
127 |
//ocrAnalyzer.ApplyResults(analysisResults, extractor);
|
|
128 | 128 |
if (extractor.Find(i, searchString, false)) |
129 | 129 |
do |
130 | 130 |
{ |
... | ... | |
198 | 198 |
string instnaceFile = System.IO.Path.GetTempFileName().Replace(".pdf", ".tmp"); |
199 | 199 |
client.DownloadFileCompleted += Client_DownloadFileCompleted; |
200 | 200 |
client.DownloadProgressChanged += Client_DownloadProgressChanged; |
201 |
client.DownloadFileAsync(new Uri(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu._DocInfo.ORIGINAL_FILE), instnaceFile, instnaceFile); |
|
201 |
string downloadurl = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.GetOriginalPDFURL(); |
|
202 |
client.DownloadFileAsync(new Uri(downloadurl), instnaceFile, instnaceFile); |
|
202 | 203 |
} |
203 | 204 |
} |
204 | 205 |
catch (Exception ex) |
내보내기 Unified diff