Importing saved signatures

Which product are you using?
PDF.js Express Plus

PDF.js Express Version
UI Version = 8.7.0
Core version = 8.7.5

Detailed description of issue
I’m receiving the following error when trying to import signatures after exporting them. I see these errors in the console.

Expected behaviour
I’d expect to see the signature in the dropdown

Does your issue happen with every document, or just one?
All documents

Link to document
N/A

Code snippet

const signatureTool = instance.Core.documentViewer.getTool('AnnotationCreateSignature');
let _signatures;

signatureTool.exportSignatures().then((exportedSignatures) => {
    if (exportedSignatures === null || exportedSignatures === undefined) {
        writeErrorMessage('Signatures JSON is null or undefined');
        return;
    }
    _signatures = exportedSignatures;
});

function populateSignatures() {
    signatureTool.importSignatures(_signatures).then(() => { });
}

Hi there,

Can you share what you are passing to the importSignatures API? Are you using a JSON?

best regards,
Kevin

I’m passing the result from the signatureTool.exportSignatures function that is being saved to a variable. I believe I’m getting an array.

Hi there,

Can you try the suggested solution provided here as an example to use the importSignature API:

best regards,
Kevin