1. Why This Is Useful
Joget signature fields store stroke data (JSON), but many use cases need a real image output.
This script converts signature JSON into a PNG image and returns it as a Base64 data URL.
The best part is that it uses dynamic table , field , and id parameters, so you can reuse the same code anywhere without rewriting logic.
Use this when you need to:
preview a signature directly in a form or report,
embed signature image in email/PDF templates,
avoid custom external conversion services.
2. Where to Use in Joget
Form Builder: BeanShell script in a formatter/element that needs image output.
Userview/Report: render returned data URL as image source.
Workflow tools: generate signature image before notifications or documents.
3.…