Make getTextContent return offset array and improve the algorithm. Make

parts in viewer.js work again.
This commit is contained in:
Julian Viereck 2012-09-11 15:10:34 -07:00
parent e13846821c
commit a38c4bc729
3 changed files with 64 additions and 7 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;
self.pageText[pageIndex] = textContent.text;
self.search();
if ((pageIndex + 1) < self.pages.length)
extractPageText(pageIndex + 1);