How to load a signature which is in our Local storage or coming from the API?

In this screenshot, I created this signature by using “Signature Pad” after clicking on the “Sign here” button.
But I want to use a signature that is already in my Local storage of the browser or which is coming from the API. So my question is, How to load that signature here So that I can directly use that signature after clicking on the “Sign here” button instead of creating a new signature?

Note: I’m using Angular 12.

Please find the attached.


Please try the importSignatures API to import external signatures: