1
0
Fork 0
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:
Julian Viereck 2012-09-11 16:14:18 -07:00
parent eced7fbb57
commit 668c2867d4
2 changed files with 4 additions and 16 deletions

View file

@ -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);