I am trying the “createSignHereElement” code snippet. I copied it on one of the index.js files, but I don’t see the “SignHere” element on my page. I am trying to recreate what they showed here https://pdfjs.express/documentation/signature/signature-field . Can someone help with this?
Code:
const createSignHereElement = Annotations.SignatureWidgetAnnotation.prototype.createSignHereElement;
Annotations.SignatureWidgetAnnotation.prototype.createSignHereElement = () => {
// signHereElement is the default one with dark blue background
const signHereElement = createSignHereElement.apply(this, arguments);
signHereElement.style.background = ‘red’;
return signHereElement;
}