On my VF page, I need to save to SF an html code with a signature represented as a blob (drawn with HTML5 Canvas) as a text file (preferably MS word).

Right now, I'm not sure if this should be accomplished on the server side (apex) or the client side (JS) - what do you think will be the best course of action?

I tried this solution but unfortunately, the downloaded file appears with the html tags and does not render the blob as an image.

See this JSfiddle.

  • Last time I tried doing something like this I couldn't find a way to get an blob image into a normal doc. It seemed to require the docx file format, which is more complicated to create. There might be a JavaScript library for it though.
    – Kasper
    Feb 11 '20 at 14:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.