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

Don't take into account the INVISIBLE flag for well-known annotations

This commit is contained in:
Calixte Denizet 2023-10-25 09:41:22 +02:00
parent f098121644
commit 133ed96f8f
4 changed files with 25 additions and 3 deletions

View file

@ -0,0 +1 @@
https://github.com/mozilla/pdf.js/files/13161366/stamp-signature.pdf

View file

@ -8181,5 +8181,13 @@
"lastPage": 2,
"type": "eq",
"forms": true
},
{
"id": "issue17169",
"file": "pdfs/issue17169.pdf",
"md5": "fa57aa9442c5e2d6d9e61bbb8856a55f",
"link": true,
"rounds": 1,
"type": "eq"
}
]

View file

@ -4082,7 +4082,7 @@ describe("annotation", function () {
const popupDict = new Dict();
popupDict.set("Type", Name.get("Annot"));
popupDict.set("Subtype", Name.get("Popup"));
popupDict.set("F", 25); // not viewable
popupDict.set("F", 56); // not viewable
popupDict.set("Parent", parentDict);
const popupRef = Ref.get(13, 0);
@ -4097,7 +4097,7 @@ describe("annotation", function () {
expect(data.annotationType).toEqual(AnnotationType.POPUP);
// We should not modify the `annotationFlags` returned through
// e.g., the API.
expect(data.annotationFlags).toEqual(25);
expect(data.annotationFlags).toEqual(56);
// The popup should inherit the `viewable` property of the parent.
expect(viewable).toEqual(true);
}