Merge pull request #16472 from calixteman/issue16471

Extract all the text of text annotations
This commit is contained in:
Jonas Jenwald 2023-05-26 09:33:48 +02:00 committed by GitHub
commit 2bf68f3c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}".`

View File

@ -0,0 +1 @@
https://github.com/mozilla/pdf.js/files/11568812/test2.pdf

View File

@ -7667,5 +7667,14 @@
"link": true,
"print": true,
"type": "eq"
},
{
"id": "issue16471",
"file": "pdfs/issue16471.pdf",
"md5": "8ac3720d6d3ddcc58e2eadab477fd81e",
"rounds": 1,
"link": true,
"forms": true,
"type": "eq"
}
]