mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Change the format of textContent to be an array
This commit is contained in:
parent
eced7fbb57
commit
668c2867d4
2 changed files with 4 additions and 16 deletions
|
@ -1043,7 +1043,7 @@ var PDFView = {
|
|||
function extractPageText(pageIndex) {
|
||||
self.pages[pageIndex].pdfPage.getTextContent().then(
|
||||
function textContentResolved(textContent) {
|
||||
self.pageText[pageIndex] = textContent.text;
|
||||
self.pageText[pageIndex] = textContent.join('');
|
||||
self.search();
|
||||
if ((pageIndex + 1) < self.pages.length)
|
||||
extractPageText(pageIndex + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue