0

I have an HTML which contains images and javascript charts. I want to convert that HTML into an image and send as an attachment through email.

Is it possible?

If yes, which library should I use for this task?

3

1 Answer 1

0

Yes it's possible, but for that you need to use phantomjs. Here is a php library i used for phantomjs. http://jonnnnyw.github.io/php-phantomjs/

Its pure php solution (using phantomjs browser) and is very easy to use. Just install this library through composer and that's it you should be good to go.

Note: This solution is valid if you want to take screenshot of your html page through its URL.

Hope it helps :-)

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.