How I can export signature in pdf js express to be a base64-encoded PNG image

Which product are you using?

PDF.js Express Version
@pdftron/pdfjs-express”: “^8.4.0”,

Detailed description of issue
I’m trying to find a way to export a signature from PDF.js Express to be a Base64-encoded PNG image without placing that signature on page.

Expected behaviour
After the user creates their signature on PDF.js Express, I would like to export that signature as a Base64-encoded PNG image.

Screen Shot 2023-05-25 at 2.20.22 PM

Hello stefans,

You can use the exportSignatures() method on the signatureCreateTool, PDFJS Express WebViewer Class: SignatureCreateTool

Best regards,