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

Don't get the text content for an annotation when /NeedAppearances is true (bug 1844583)

When the flag is set, the appearance has to be generated from the value so it's
useless/meaningless to extract the content from the existing appearance.
This commit is contained in:
Calixte Denizet 2023-07-21 10:28:03 +02:00
parent 1a69b6ad64
commit d470e91223
4 changed files with 178 additions and 1 deletions

View file

@ -2572,7 +2572,7 @@ class TextWidgetAnnotation extends WidgetAnnotation {
}
get hasTextContent() {
return !!this.appearance;
return !!this.appearance && !this._needAppearances;
}
_getCombAppearance(