any way to take an screenshot of particular part of HTML. like canvas in html5 my HTML part is store in database like I am making a Page creating header footer main content . and storing header HTML ,footer HTML , and main part HTML in database .
Is any particular way to create screen shot of particular Page HTML . And screen shot will be any kind of image so i can attach image in email .
I have gone through below question
Using HTML5/Canvas/JavaScript to take screenshots
<script type = "text/javascript" >
var text = 'mycanvas';
var x = 0;
var y = 0;
var h = 5; //height
var a = 5; //angle
var n = 150; //no of lines
if (n % 2 == 0)`enter code here` {
n = n + 1
}
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.moveTo(x, h);
for (; n > 0; n--) {
if (n % 2 == 0) {
y = y + h;
}else {
y = 0;
}
</script>
My server side programming is php and database mysql