webpage image to pdf
Is it possible to capture image of the web page and convert it into pdf?
Yes, you need to use Html2Canvas, they have a little example that shows you how to use it. Basically all you need to do is get the Body element with Jquery or Javascript convert it to Canvas and use addImage() function in your PDF and you'll be ready to go.
Maybe im wrong but that's how i would do it.
Can you provide a link to the code or some example? Thank you
Hi @manjari188 and @Abuitime, I've created html2pdf for exactly this purpose. It uses html2canvas and jsPDF to create a PDF from HTML. Try it out - if you have any problems with it, feel free to open an issue over there!