Forum Discussion
Digital Release Form Signature capture
It's possible to use a javascript library like jSignature to add a signature pad to a slide and subsequently capture the data in Base64 as a storyline variable to display in an exported PDF using jsPDF. But it ultimately depends on your use case and what it is you're really after.
Like i mentioned you could use jsPDF to act as a somewhat "on-demand" document manager if hidden behind course completion triggers, only issue is if user progression is lost, you won't be able to recover any documents.
The only issue with that is that the storyline variable has a limit of 32k characters and base 64 often bloats this and breaks the function.
Sent from my iPhone
- AriffKhalid-25f3 years agoCommunity Member
Oh i didn't know that. Fair enough. Well in my implementation i've only ever seen extremely simple signatures which end up being 5k ~ 20k characters. So unless my customers are using the signature field to draw a bob ross painting it's worked very well for me so far.
I'm sure there's a way around this though by splitting the output into two variables and concatenating them after the fact.
- PhilMayor3 years agoSuper Hero
I tried to use it to grab a screenshot and gave up as concatenations it would have been a nightmare. In your use case I agree you have more than enough space.
Sent from my iPhone
Related Content
- 10 months ago
- 4 months ago
- 7 months ago
- 10 months ago
- 2 months ago