Don't print hidden annotatons (bug 1815196)

and handle correctly the NoView and NoPrint flags when they're changed
from JS.
This commit is contained in:
Calixte Denizet 2023-07-30 15:52:27 +02:00
parent 0e6d141edf
commit 71960bea64
9 changed files with 124 additions and 18 deletions

View file

@ -556,7 +556,8 @@ class Page {
for (const annotation of annotations) {
if (
intentAny ||
(intentDisplay && annotation.mustBeViewed(annotationStorage)) ||
(intentDisplay &&
annotation.mustBeViewed(annotationStorage, renderForms)) ||
(intentPrint && annotation.mustBePrinted(annotationStorage))
) {
opListPromises.push(