mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Text char codes extraction
This commit is contained in:
parent
853f16085f
commit
3b72c6063c
4 changed files with 152 additions and 13 deletions
|
@ -309,6 +309,17 @@ var PDFView = {
|
|||
}
|
||||
else
|
||||
this.page = 1;
|
||||
|
||||
setTimeout((function loadStartTextExtraction() {
|
||||
this.startTextExtraction(pdf);
|
||||
}).bind(this), 500);
|
||||
},
|
||||
|
||||
startTextExtraction: function(pdf) {
|
||||
pdf.textExtracted = function pdfTextExtracted(index) {
|
||||
console.log(index.join());
|
||||
};
|
||||
pdf.extractText();
|
||||
},
|
||||
|
||||
setHash: function pdfViewSetHash(hash) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue