site: https://www.newocr.com/
step 1 = only one time
$('#page').val("1");$('#form-ocr').submit();$('#ocr').click();
step 2 = 343 times
localStorage.setItem($('#page option:selected').text(),$('#result2-container').contents().find('pre').text());$('#page').val(String(parseInt($('#page option:selected').text(), 10) + 1));$('#form-ocr').submit();$('#ocr').click();
step 3 = save string
var data = ""; for (let i = 1; i <= 343; i++) { data = data + "\n" + localStorage.getItem(String(i));}
step 4 = download file
var blob = new Blob([data], {type: 'text/plain'}), e = document.createEvent('MouseEvents'), a = document.createElement('a');
a.download = 'arquivo.txt'; a.href = window.URL.createObjectURL(blob); a.dataset.downloadurl = ['text/plain', a.download, a.href].join(':');
e.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); a.dispatchEvent(e)