Adobe Acrobat Pro DC goes to Not Responding
Hello Adobe Experts,
I am using the below JS Code in "Adobe Acrobat Pro DC" to Extract the Text Content From the PDF File. Using String Concatenation (word by word), I am trying to get the whole text content of the pdf in "docText" variable. But after the alert, the Application goes to "Not Responding" where I am struggling and iritating a lot. I tried almost all the setting changes (explored from google/forum). Is there any special settings I have to make or Is there any other way to extract the text content from the PDF.
For your information:
We are using "Adobe Acrobat Pro DC" in remote servers.
The same code works perfectly in "Adobe Acrobat X Standard".
The pdf is a scanned pdf processed through Abbyy OCR.
Please help me in detail. Thanks in advance.
Code Executed from Console Window (Even in Folder Level Script also Same Issue) :
for (var pg = 0; pg < this.numPages; pg++) {
var pageText = "";
for (var w = 0; w < this.getPageNumWords(pg); w++) {
pageText = pageText + this.getPageNthWord(pg, w, false) + "\r\n";
}
docText = pageText + "========================================\r\n" + docText;
}
app.alert("Process Completed");
