@@ -133,16 +133,15 @@ Sub ocrButton_MouseClicked (EventData As MouseEvent)
133
133
Return
134
134
End If
135
135
136
- Label2.Text="Convert pdf to images..."
136
+ Label2.Text="Converting pdf to images..."
137
137
Dim files As List
138
138
wait for (pdfbox.getImage(File.GetFileParent(label1.Text),File.GetName(label1.Text))) complete (result As List )
139
139
files=result
140
140
Label2.Text="OCRing..."
141
141
If IncludePageNumCheckBox.Checked Then
142
-
143
- wait for (scanWithPagenum(files,langsParam,PageAffixTextField.Text,offsetTextField.Text)) complete (text As String )
142
+ wait for (ocrWithPagenum(files,langsParam,PageAffixTextField.Text,offsetTextField.Text)) complete (text As String )
144
143
Else
145
- wait for (scan (files,langsParam)) complete (text As String )
144
+ wait for (ocr (files,langsParam)) complete (text As String )
146
145
End If
147
146
Label2.Text="Completed"
148
147
TextArea1.Text=text
@@ -190,7 +189,7 @@ Sub testTesseractPath As ResumableSub
190
189
Return exist
191
190
End Sub
192
191
193
- Sub scanWithPagenum (files As List ,langsParam As String ,affix As String ,offset As Int ) As ResumableSub
192
+ Sub ocrWithPagenum (files As List ,langsParam As String ,affix As String ,offset As Int ) As ResumableSub
194
193
Dim dir As String
195
194
dir=File.GetFileParent(label1.Text)
196
195
Dim pdfFilename As String
@@ -240,7 +239,7 @@ Sub scanWithPagenum(files As List,langsParam As String,affix As String,offset As
240
239
Return content
241
240
End Sub
242
241
243
- Sub scan (files As List ,langsParam As String ) As ResumableSub
242
+ Sub ocr (files As List ,langsParam As String ) As ResumableSub
244
243
Dim dir As String
245
244
dir=File.GetFileParent(label1.Text)
246
245
Dim pdfFilename As String
@@ -284,4 +283,4 @@ Sub IncludePageNumCheckBox_CheckedChange(Checked As Boolean)
284
283
FacingPageCheckBox.Enabled=Checked
285
284
PageAffixTextField.Enabled=Checked
286
285
offsetTextField.Enabled=Checked
287
- End Sub
286
+ End Sub
0 commit comments