mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Make getTextContent return offset array and improve the algorithm. Make
parts in viewer.js work again.
This commit is contained in:
parent
e13846821c
commit
a38c4bc729
3 changed files with 64 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue