diff --git a/src/display/annotation_layer.js b/src/display/annotation_layer.js index 12afde2d3..46c89e401 100644 --- a/src/display/annotation_layer.js +++ b/src/display/annotation_layer.js @@ -100,6 +100,8 @@ class AnnotationElementFactory { return new PushButtonWidgetAnnotationElement(parameters); case "Ch": return new ChoiceWidgetAnnotationElement(parameters); + case "Sig": + return new SignatureWidgetAnnotationElement(parameters); } return new WidgetAnnotationElement(parameters); @@ -1373,6 +1375,12 @@ class TextWidgetAnnotationElement extends WidgetAnnotationElement { } } +class SignatureWidgetAnnotationElement extends WidgetAnnotationElement { + constructor(parameters) { + super(parameters, { isRenderable: !!parameters.data.hasOwnCanvas }); + } +} + class CheckboxWidgetAnnotationElement extends WidgetAnnotationElement { constructor(parameters) { super(parameters, { isRenderable: parameters.renderForms }); diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore index 7d6b943dd..192ec0c45 100644 --- a/test/pdfs/.gitignore +++ b/test/pdfs/.gitignore @@ -600,3 +600,4 @@ !issue16500.pdf !issue16538.pdf !freetexts.pdf +!issue16553.pdf diff --git a/test/pdfs/issue16553.pdf b/test/pdfs/issue16553.pdf new file mode 100755 index 000000000..dac994004 Binary files /dev/null and b/test/pdfs/issue16553.pdf differ diff --git a/test/test_manifest.json b/test/test_manifest.json index f78bae3ce..0847c6d33 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -7806,5 +7806,13 @@ "id": "53R" } } + }, + { + "id": "issue16553", + "file": "pdfs/issue16553.pdf", + "md5": "9b67d31ccfd21572b10f77c5449ce97d", + "rounds": 1, + "type": "eq", + "annotations": true } ]