1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Extract all the text of text annotations

This commit is contained in:
Calixte Denizet 2023-05-25 22:59:09 +02:00
parent 8d5da54cd5
commit 35a58ed987
3 changed files with 16 additions and 1 deletions

View file

@ -614,7 +614,12 @@ class Page {
textContentPromises.push(
annotation
.extractTextContent(partialEvaluator, task, this.view)
.extractTextContent(partialEvaluator, task, [
-Infinity,
-Infinity,
Infinity,
Infinity,
])
.catch(function (reason) {
warn(
`getAnnotationsData - ignoring textContent during "${task.name}" task: "${reason}".`