You need to sign in to do that
Don't have an account?
Anjali R
How to render a html page as Image
I have a html page where user performs some operation ( similar to paint . user can draw on the page. This is not done using canvas).
It has a save button. Currently on clicking save button this html page is generated as pdf.
The change I need is on clicking Save button, instead of a pdf the html page should be rendered as an Image.
Could you please suggest any solution.
It has a save button. Currently on clicking save button this html page is generated as pdf.
The change I need is on clicking Save button, instead of a pdf the html page should be rendered as an Image.
Could you please suggest any solution.
bob_buzzard
I'm not aware of any way to render a web page as an image - there are a number of tools out there to capture an image from a web page, but they tend to be command line driven or (like fireshot) require the user to take some action to capture the image. All of the automated tools that I know of (like https://code.google.com/p/java-html2image/) are server side components that must be installed into the web server, but you can't do that in Salesforce. I suspect if this is possible in any way, you'll have to use a third party service, but you'll probably have to pass that session information etc so that it can pull the HTML page directly.