diff --git a/src/core/annotation.js b/src/core/annotation.js index e6b2927563efbc..46f959b4580e87 100644 --- a/src/core/annotation.js +++ b/src/core/annotation.js @@ -646,6 +646,12 @@ class Annotation { this._streams.push(this.appearance); } + if (dict.has("PMD")) { + // It's used to display a barcode but it isn't specified so we just hide + // it to avoid any confusion. + this.flags |= AnnotationFlag.HIDDEN; + } + // The annotation cannot be changed (neither its position/visibility nor its // contents), hence we can just display its appearance and don't generate // a HTML element for it. diff --git a/test/pdfs/bug1899804.pdf.link b/test/pdfs/bug1899804.pdf.link new file mode 100644 index 00000000000000..77ba32a0c39aea --- /dev/null +++ b/test/pdfs/bug1899804.pdf.link @@ -0,0 +1 @@ +https://bugzilla.mozilla.org/attachment.cgi?id=9406437 diff --git a/test/test_manifest.json b/test/test_manifest.json index 1fb60b920ce638..07ca39da989fbb 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -10064,5 +10064,22 @@ "rounds": 1, "link": true, "type": "eq" + }, + { + "id": "bug1899804_print", + "file": "pdfs/bug1899804.pdf", + "md5": "53d82575d6d5d314404ede8970073e1b", + "rounds": 1, + "link": true, + "type": "eq", + "print": true + }, + { + "id": "bug1899804", + "file": "pdfs/bug1899804.pdf", + "md5": "53d82575d6d5d314404ede8970073e1b", + "rounds": 1, + "link": true, + "type": "eq" } ]