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:
parent
1a69b6ad64
commit
d470e91223
4 changed files with 178 additions and 1 deletions
|
@ -2572,7 +2572,7 @@ class TextWidgetAnnotation extends WidgetAnnotation {
|
|||
}
|
||||
|
||||
get hasTextContent() {
|
||||
return !!this.appearance;
|
||||
return !!this.appearance && !this._needAppearances;
|
||||
}
|
||||
|
||||
_getCombAppearance(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue