Merge pull request #16472 from calixteman/issue16471
Extract all the text of text annotations
This commit is contained in:
commit
2bf68f3c7f
@ -614,7 +614,12 @@ class Page {
|
|||||||
|
|
||||||
textContentPromises.push(
|
textContentPromises.push(
|
||||||
annotation
|
annotation
|
||||||
.extractTextContent(partialEvaluator, task, this.view)
|
.extractTextContent(partialEvaluator, task, [
|
||||||
|
-Infinity,
|
||||||
|
-Infinity,
|
||||||
|
Infinity,
|
||||||
|
Infinity,
|
||||||
|
])
|
||||||
.catch(function (reason) {
|
.catch(function (reason) {
|
||||||
warn(
|
warn(
|
||||||
`getAnnotationsData - ignoring textContent during "${task.name}" task: "${reason}".`
|
`getAnnotationsData - ignoring textContent during "${task.name}" task: "${reason}".`
|
||||||
|
1
test/pdfs/issue16471.pdf.link
Normal file
1
test/pdfs/issue16471.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
https://github.com/mozilla/pdf.js/files/11568812/test2.pdf
|
@ -7667,5 +7667,14 @@
|
|||||||
"link": true,
|
"link": true,
|
||||||
"print": true,
|
"print": true,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "issue16471",
|
||||||
|
"file": "pdfs/issue16471.pdf",
|
||||||
|
"md5": "8ac3720d6d3ddcc58e2eadab477fd81e",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": true,
|
||||||
|
"forms": true,
|
||||||
|
"type": "eq"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user